DECORATE: Difference between revisions

843 bytes added ,  29 September 2021
Added new DECORATE flags in 3.1-alpha.
(Added a link to the List of DECORATE functions in Zandronum article)
(Added new DECORATE flags in 3.1-alpha.)
Line 22: Line 22:
* <code>'''SERVERSIDEONLY'''</code>
* <code>'''SERVERSIDEONLY'''</code>
:The clients don't spawn such actors, only the server does. Therefore, spawning or manipulating these actors does not need network bandwidth. Only use it on actors that are always invisible and don't block the movement of players.
:The clients don't spawn such actors, only the server does. Therefore, spawning or manipulating these actors does not need network bandwidth. Only use it on actors that are always invisible and don't block the movement of players.
=== (In)Abilities ===
* <code>'''USESPAWNEVENTSCRIPT'''</code> {{Devfeature|3.1|alpha}}
:Actors with this flag will trigger GAMEEVENT_ACTOR_SPAWNED just before their first tic.
* <code>'''NOSPAWNEVENTSCRIPT'''</code> {{Devfeature|3.1|alpha}}
:Actors with this flag will never trigger GAMEEVENT_ACTOR_SPAWNED, even if ForceSpawnEventScripts is enabled in the [https://zdoom.org/wiki/GameInfo_definition GameInfo Definition].
* <code>'''USEDAMAGEEVENTSCRIPT'''</code> {{Devfeature|3.1|alpha}}
:Actors with this flag will trigger GAMEEVENT_ACTOR_DAMAGED just before they're about to take damage.
* <code>'''NODAMAGEEVENTSCRIPT'''</code> {{Devfeature|3.1|alpha}}
:Actors with this flag will never trigger GAMEEVENT_ACTOR_DAMAGED, even if ForceDamageEventScripts is enabled in the [https://zdoom.org/wiki/GameInfo_definition GameInfo Definition].


=== Inventory ===
=== Inventory ===