On crane: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 1: Line 1:
-1 if player is not on a crane, 1 if player is: setting the value to 1 will lock the player like they are on a crane
'''on_crane''' is a member of the [[Members of the player structure|player struct]].
 
This value is -1 if player hasn't been grabbed by a crane and is otherwise a value greater than or equal to 0, corresponding to the sprite ID of the crane.  Setting '''on_crane''' to anything greater than or equal to 0 will lock the player's movement as if a crane had picked them up.


[[Category:Player structure members]]
[[Category:Player structure members]]

Latest revision as of 02:26, 14 July 2009

on_crane is a member of the player struct.

This value is -1 if player hasn't been grabbed by a crane and is otherwise a value greater than or equal to 0, corresponding to the sprite ID of the crane. Setting on_crane to anything greater than or equal to 0 will lock the player's movement as if a crane had picked them up.