EVENT KILLIT: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
mNo 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}}
{{EventTable|1=EVENT_KILLIT|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]].



Latest revision as of 23:56, 4 February 2022

Event ID player# THISACTOR RETURN
EVENT_KILLIT 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.