Page tree
Skip to end of metadata
Go to start of metadata




Introduced in

Version:3.4

Description

Description:

Sets the shortcut (action, for example, ReloadMagazine) that can be used to activate a Systems-Menu item, even without having the Systems Menu open. The function is only available for systems of type SYSTEM_TYPE_ITEM or SYSTEM_TYPE_TOGGLE.

For more information, see Systems Menu in the VBS3 User Manual.

Syntax

Syntax:[vehicle, systemItemID, bindAction, updateAllClients] call fn_vbs_setSystemItemShortcut
Parameters:
Return Value:Boolean - Returns false, if the item or the system do not exist, or the item is of wrong type.

Warning

When using functions in VBS versions older than 3.4, certain limitations and requirements should be kept in mind - the main ones being that capitalization of the function name is crucial, and that #include "\vbs2\headers\function_library.hpp" has to be included in every script that utilizes it. More Category VBS Scripting Functions.

Examples

Examples:
 [tank1, 1, "UserDefAction20", false] call fn_vbs_setSystemItemShortcut

Additional Information

See also: fn vbs getSystemItemShortcut, fn vbs getDefaultSystem, fn vbs setDefaultSystem, fn vbs createSystem, fn vbs removeSystemItem
Multiplayer:
Problems:

Notes