EVENT KILLIT: Difference between revisions
Jump to navigation
Jump to search
Hunter byte (talk | contribs) mNo edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
EVENT_KILLIT is a [[EDuke32_event_list|Game Event]]. | |||
This [[event]] is fired when an actor is about to be killed by the [[killit]] command or by the game. | This [[event]] is fired when an actor is about to be killed by the [[killit]] command or by the game. | ||
Set gamevar RETURN 0 to let the actor die.<br> | Set gamevar [[RETURN]] 0 to let the actor die.<br> | ||
Set gamevar RETURN | Set gamevar [[RETURN]] to any non-zero value to let the actor live.<br> | ||
Note: by default the game kills actors but it's advisable to set a value to RETURN explicitly before exiting the event. Otherwise the RETURN may be changed during processing the event because some commands change this gamevar. | Note: by default the game kills actors but it's advisable to set a value to RETURN explicitly before exiting the event. Otherwise the RETURN may be changed during processing the event because some commands change this gamevar. | ||
[[Category:Events]] | [[Category:Events]] |
Revision as of 10:44, 3 May 2009
EVENT_KILLIT is a Game Event.
This event is fired when an actor is about to be killed by the killit command or by the game.
Set gamevar RETURN 0 to let the actor die.
Set gamevar RETURN to any non-zero value to let the actor live.
Note: by default the game kills actors but it's advisable to set a value to RETURN explicitly before exiting the event. Otherwise the RETURN may be changed during processing the event because some commands change this gamevar.