User Tools

Site Tools


ded:state

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
ded:state [2019-12-22 22:05]
skyjake [Action]
ded:state [2020-04-10 06:53] (current)
skyjake [Action]
Line 57: Line 57:
 The action to be performed when a [[thing]] enters this state. Each game plugin defines its own set of action routines (native code). The action to be performed when a [[thing]] enters this state. Each game plugin defines its own set of action routines (native code).
  
-In [[version:​2.2]],​ the action may also be defined using Doomsday Script. In this case, the contents of the Action string are parsed as a script and executed when a thing or psprite enters the state. Variables available in the script:+Since [[version:​2.2]],​ the action may also be defined using Doomsday Script. In this case, the contents of the Action string are parsed as a script and executed when a thing or psprite enters the state. Variables available in the script:
   * //self// refers to the thing itself, or the player mobj in case of a psprite action ([[script:​module:​world#​worldthing|World.Thing]])   * //self// refers to the thing itself, or the player mobj in case of a psprite action ([[script:​module:​world#​worldthing|World.Thing]])
   * //player// refers to the current player ([[script:​module:​app#​appplayer|App.Player]],​ psprite actions only)   * //player// refers to the current player ([[script:​module:​app#​appplayer|App.Player]],​ psprite actions only)
ded/state.1577045152.txt.gz ยท Last modified: 2019-12-22 22:05 by skyjake