EVENT SPAWN: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
Fox (talk | contribs)
No edit summary
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{EventTable|1=EVENT_SPAWN|2=closest player to sprite|3=spawned sprite|4=0 values}}
EVENT_SPAWN is a [[EDuke32_event_list|Game Event]].
EVENT_SPAWN is a [[EDuke32_event_list|Game Event]].


This [[event]] is triggered when the attributes of actor are defined by the game. It applies to most sprite that appear on the map (projectiles excluded), this is, both due to the [[spawn]] (similar to [[EVENT_EGS]]) command on whenever the actor was already part of the map (similar to [[EVENT_LOADACTOR]] but later in the process). This is useful to modify an enemy as it works for both cases.
This [[event]] is triggered when the attributes of actor are defined by the game.


Chronologically, this event is triggered after [[EVENT_EGS]] or [[eventloadactor]].
In effect, this means that the event is run for all sprites that are initialized on map start, and all sprites that are spawned later on.
 
Chronologically, this event is triggered after [[EVENT_EGS]] and [[eventloadactor]].
 
[[Category:Events]]

Latest revision as of 12:40, 5 February 2022

Event ID player# THISACTOR RETURN
EVENT_SPAWN closest player to sprite spawned sprite 0 values

EVENT_SPAWN is a Game Event.

This event is triggered when the attributes of actor are defined by the game.

In effect, this means that the event is run for all sprites that are initialized on map start, and all sprites that are spawned later on.

Chronologically, this event is triggered after EVENT_EGS and eventloadactor.