Equip action script: Difference between revisions

From The DarkMod Wiki
Jump to navigationJump to search
Tels (talk | contribs)
add
 
Tels (talk | contribs)
m fix category
 
Line 7: Line 7:
   "equip_action_script"      "eat_it"
   "equip_action_script"      "eat_it"


{{spawnargs}}
{{tdmspawnargs}}

Latest revision as of 09:09, 1 November 2008

The equip_action_script spawnarg specifies a script that is run when the user holds the item in his hands and presses the Use/Equip key.

This is for instance used to make food edible, toggle the light on the oil lantern etc.

Example:

 "equip_action_script"       "eat_it"