Iffloordistl: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
see ifceilingdistl
No edit summary
 
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. That is, one <number> unit corresponds to 16 x/y BUILD units. If the actor is "inside" the floor it will return negative values.
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]]

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.