Iffloordistl: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(4 intermediate revisions by 4 users not shown)
Line 1: Line 1:
iffloordistl <number>
'''iffloordistl''' <number>


Checks if the current [[actor]] is less than <number> shifted left 8 units away from the [[actor]]'s [[sector]]'s floor.
Checks if the current [[actor]] is less than 256*<number> z units away from the [[actor]]'s [[sector]]'s floor. That is, one <number> unit corresponds to 16 x/y BUILD units. If the actor is "inside" the floor it will return negative values, i.e. the condition is true.


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

Latest revision as of 10:19, 6 January 2013

iffloordistl <number>

Checks if the current actor is less than 256*<number> z units away from the actor's sector's floor. That is, one <number> unit corresponds to 16 x/y BUILD units. If the actor is "inside" the floor it will return negative values, i.e. the condition is true.