setAction (VBS2)

From Bohemia Interactive Community

Jump to: navigation, search
Editors, please check Policy: Scripting Command Page Syntax.
Introduced in Virtual Battlespace 2 version 1.22

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.

Notes

Notes

+ Add Note

Only post proven facts here. Use the talk page or the forums for discussions.

Notes

Bottom Section

Personal tools
Buy ArmA now!