setAction (VBS2)
From Bohemia Interactive Community
| Editors, please check Policy: Scripting Command Page Syntax. |
Click on the images for descriptions
Introduced in
- Game:
- Virtual Battlespace 2
- Version:
- 1.22
Description
- Description:
- Simulates a user input via script or ASI.
Toggle options will reset themself, while other actions will keep there state until set to zero again.
Syntax
- Syntax:
- keystroke setAction amount
- Parameters:
- keystroke: String - (see key actions)
- amount: Number - Amount of input (e.g. to simulate a joystick). 0 to 1 for digital actions, -1 to 1 for analog.
- Return Value:
- Nothing
Examples
- Example 1:
"moveforward" setaction 0.7
Additional Information
- Multiplayer:
- Behaviour unknown.

