EVENT CROUCH: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
'''EVENT_KILLIT''' is a [http://www.eduke32.com/wiki/index.php?title=EDuke32_event_list Game Event].
{{EventTable|1=EVENT_CROUCH|2=player that executed the input|3=[[i|player->i]]|4=1 value}}
EVENT_CROUCH is a [[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 the player is crouching (down key pressed when jetpack is not on). Note that this event only fires if the player is not in the air.


Set gamevar RETURN 0 to let the actor die.<br>
Set gamevar [[RETURN]] to any non-zero value to disable crouching.
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]]

Latest revision as of 14:25, 4 February 2022

Event ID player# THISACTOR RETURN
EVENT_CROUCH player that executed the input player->i 1 value

EVENT_CROUCH is a Game Event.

This event is fired when the player is crouching (down key pressed when jetpack is not on). Note that this event only fires if the player is not in the air.

Set gamevar RETURN to any non-zero value to disable crouching.