23.07.2011, 13:09
Hi guys, I was thinking if we could set an object as invincible, the ones that get destroyed on hit/explosion.
Is it possible?
Is it possible?
Use IsPlayerInRangeOfPoint to checking the position of the the player to know if he's near of the object and check your animation if is a fight anim.
Or create pickups around the object to check if any player is near and create a temporary timer to check if he's yet is near, being that in this timer you check the position like in the my first suggestion. In the two suggestions you have that destroy and create the object to make them visible after destroyed. |