Ifceilingdistl: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
clatify a little
No edit summary
 
Line 1: Line 1:
'''ifceilingdistl''' <number>
'''ifceilingdistl''' <number>


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


[[Category:Duke3D 1.3/1.5 commands]]
[[Category:Duke3D 1.3/1.5 commands]]

Latest revision as of 10:21, 6 January 2013

ifceilingdistl <number>

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