This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
ded:state [2019-12-22 22:05] skyjake [Action] |
ded:state [2020-04-10 06:53] 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) |