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