BIS fnc showRespawnMenuDisableItem: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<code>([^<]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^<]*) *<\/code>" to "<code>$1$2$3</code>")
m (Text replacement - "<code> *([^<|{]*) *<\/code>" to "<sqf>$1</sqf>")
Line 26: Line 26:
|r1= [[Nothing]]
|r1= [[Nothing]]


|x1= <code>[
|x1= <sqf>[
"disable",
"disable",
uiNamespace getVariable "BIS_RscRespawnControlsMap_ctrlLocList",
uiNamespace getVariable "BIS_RscRespawnControlsMap_ctrlLocList",
Line 32: Line 32:
"Restricted for this part of mission!",
"Restricted for this part of mission!",
myRespawnModule call BIS_fnc_objectVar
myRespawnModule call BIS_fnc_objectVar
] call BIS_fnc_showRespawnMenuDisableItem;</code>
] call BIS_fnc_showRespawnMenuDisableItem;</sqf>


|seealso= [[BIS_fnc_addRespawnInventory]] [[BIS_fnc_addRespawnPosition]] [[Arma 3: Respawn]]
|seealso= [[BIS_fnc_addRespawnInventory]] [[BIS_fnc_addRespawnPosition]] [[Arma 3: Respawn]]
}}
}}

Revision as of 22:44, 12 July 2022

Hover & click on the images for description

Description

Description:
Disables respawn loadout, role or position for Arma 3: Respawn.
  • Only role or only loadout can be limited at one moment, if there is limit for both, then only role uses limit.
  • If the limit definition for role is called multiple times with different numbers, then the highest number is used.
  • If disabling a position then respawnReference must be supplied
Execution:
call
Groups:
Respawn

Syntax

Syntax:
[mode, uiControl, listboxItem, message, respawnReference] call BIS_fnc_showRespawnMenuDisableItem
Parameters:
mode: String - Available options are disable, enable and state
uiControl: Control - List in which item should be disabled/enabled
  • BIS_RscRespawnControlsMap_ctrlLocList
  • BIS_RscRespawnControlsMap_ctrlRoleList
  • BIS_RscRespawnControlsMap_ctrlComboLoadout
listboxItem: Number or String - Index or name of item in the respawn loadout/role/position listbox
message: String - Message shown when disabled item is selected, use "" for default message
respawnReference: String - Reference to respawn position either Marker name or Object var name
Return Value:
Nothing

Examples

Example 1:
[ "disable", uiNamespace getVariable "BIS_RscRespawnControlsMap_ctrlLocList", 2, "Restricted for this part of mission!", myRespawnModule call BIS_fnc_objectVar ] call BIS_fnc_showRespawnMenuDisableItem;

Additional Information

See also:
BIS_fnc_addRespawnInventory BIS_fnc_addRespawnPosition Arma 3: Respawn

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note