EVENT KILLIT: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
Fox (talk | contribs)
No edit summary
mNo edit summary
Line 1: Line 1:
{{EventTable|1=EVENT_GAME|2=closest player to sprite|3=sprite being deleted|4=1 value}}
EVENT_KILLIT is a [[EDuke32_event_list|Game Event]].
EVENT_KILLIT is a [[EDuke32_event_list|Game Event]].


This [[event]] is fired when an actor is about to be deleted by the [[killit]] command or by the game. Set gamevar [[RETURN]] to any non-zero value to prevent the actor from being deleted.
This [[event]] is fired when an actor is about to be deleted by the [[killit]] command, or through other means.  


Note: Be carefull while using commands that change the gamevar RETURN (such as [[espawn]]), as you may need to set it back to zero.
[[RETURN]] is set to 0 by default. Set it to any non-zero value to prevent the actor from being deleted.
 
WARNING: Be carefull when using commands that change the gamevar RETURN (such as [[espawn]]), as you may need to set it back to zero.


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

Revision as of 23:56, 4 February 2022

Event ID player# THISACTOR RETURN
EVENT_GAME closest player to sprite sprite being deleted 1 value

EVENT_KILLIT is a Game Event.

This event is fired when an actor is about to be deleted by the killit command, or through other means.

RETURN is set to 0 by default. Set it to any non-zero value to prevent the actor from being deleted.

WARNING: Be carefull when using commands that change the gamevar RETURN (such as espawn), as you may need to set it back to zero.