Ifbulletnear: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
Fox (talk | contribs)
No edit summary
One (talk | contribs)
No edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[If condition]] returning 'true' if a projectile is near the [[actor]]. The projectile can be either a moving actor (such as, RPG) or a even impossible to dodge hitscan (such as, SHOTSPARK1).
'''ifbulletnear''' { do something } else { do something else }


Despite being a if condition, this command automatically set the actor in a new angle, even without using [[move]].
[[If condition]] returning 'true' if a projectile is near the [[actor]].  In the case of hitscan projectiles (such as SHOTSPARK1), it returns true if the point of impact is near the player.


[[Category:Duke3D 1.3/1.5 commands]]
[[Category:Duke3D 1.3/1.5 commands]]
[[Category:Sprite manipulation]]
[[Category:If conditions]]
[[Category:If conditions]]

Latest revision as of 11:42, 4 May 2009

ifbulletnear { do something } else { do something else }

If condition returning 'true' if a projectile is near the actor. In the case of hitscan projectiles (such as SHOTSPARK1), it returns true if the point of impact is near the player.