Ifceilingdistl: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
BlasterDRP (talk | contribs)
mNo edit summary
No edit summary
 
(5 intermediate revisions by 4 users not shown)
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.
 
[[Category:Duke3D 1.3/1.5 commands]]
[[Category:Sprite manipulation]]
[[Category:Sector manipulation]]
[[Category:If conditions]]

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.