EVENT CROUCH: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
No edit summary
Undo revision 6955 (Oops)
Line 1: Line 1:
'''EVENT_KILLIT''' is a [http://www.eduke32.com/wiki/index.php?title=EDuke32_event_list Game Event].
EVENT_CROUCH is a [http://www.eduke32.com/wiki/index.php?title=EDuke32_event_list Game Event].


This [[event]] is fired when an actor is about to killed by the [[killit]] command or the game.
This [[event]] is fired when processing the crouch event (down key pressed when jetpack is not on).  Note that is NOT fired directly when the key is pressed.


Set gamevar RETURN 0 to let the actor die.<br>
Set gamevar RETURN -1 to disable screen "downing" when the player is ducking.
Set gamevar RETURN 1 to let the actor live.<br>
Note: by default the game kills actors but it's advisable to set RETURN explicitly before exiting the event. Otherwise the RETURN may change during processing the event because some commands change this gamevar.


[[Category:Events]]
[[Category:Events]]

Revision as of 14:14, 8 June 2008

EVENT_CROUCH is a Game Event.

This event is fired when processing the crouch event (down key pressed when jetpack is not on). Note that is NOT fired directly when the key is pressed.

Set gamevar RETURN -1 to disable screen "downing" when the player is ducking.