Frob action script: Difference between revisions

From The DarkMod Wiki
Jump to navigationJump to search
(add)
 
No edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
The '''frob_action_script''' [[spawnarg]] specifies a [[Scripting|script]] that is run when the user highlighted the item and presses the Frob key.
The '''frob_action_script''' [[spawnarg]] specifies a [[Scripting|script]] that is run when the user highlighted the item and presses the Frob key.


This is for instance used to put items into the inventory, trigger buttons and lights etc.
This is for instance used to open doors, trigger buttons and lights etc.


Example:
Example:
Line 7: Line 7:
   "frob_action_script"        "frob_item"
   "frob_action_script"        "frob_item"


{{spawnargs}}
{{tdmspawnargs}}

Latest revision as of 05:55, 3 November 2008

The frob_action_script spawnarg specifies a script that is run when the user highlighted the item and presses the Frob key.

This is for instance used to open doors, trigger buttons and lights etc.

Example:

 "frob_action_script"        "frob_item"