BIS fnc showRespawnMenuDisableItem: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Some wiki formatting) |
Lou Montana (talk | contribs) m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *R([a-z ])" to "$1 - r$2") |
||
(11 intermediate revisions by the same user not shown) | |||
Line 15: | Line 15: | ||
|s1= [mode, uiControl, listboxItem, message, respawnReference] call [[BIS_fnc_showRespawnMenuDisableItem]] | |s1= [mode, uiControl, listboxItem, message, respawnReference] call [[BIS_fnc_showRespawnMenuDisableItem]] | ||
|p1= '''mode''': [[String]] - | |p1= '''mode''': [[String]] - available options are ''disable'', ''enable'' and ''state'' | ||
|p2= '''uiControl''': [[Control]] - | |p2= '''uiControl''': [[Control]] - list in which item should be disabled/enabled | ||
*BIS_RscRespawnControlsMap_ctrlLocList | *BIS_RscRespawnControlsMap_ctrlLocList | ||
*BIS_RscRespawnControlsMap_ctrlRoleList | *BIS_RscRespawnControlsMap_ctrlRoleList | ||
*BIS_RscRespawnControlsMap_ctrlComboLoadout | *BIS_RscRespawnControlsMap_ctrlComboLoadout | ||
|p3= '''listboxItem''': [[Number]] or [[String]] - | |p3= '''listboxItem''': [[Number]] or [[String]] - index or name of item in the respawn loadout/role/position listbox | ||
|p4= '''message''': [[String]] - | |p4= '''message''': [[String]] - message shown when disabled item is selected, use "" for default message | ||
|p5= '''respawnReference''': [[String]] - | |p5= '''respawnReference''': [[String]] - reference to respawn position either Marker name or [[vehicleVarName|Object var name]] | ||
|r1= [[Nothing]] | |r1= [[Nothing]] | ||
|x1= < | |x1= <sqf>[ | ||
"disable", | "disable", | ||
uiNamespace getVariable "BIS_RscRespawnControlsMap_ctrlLocList", | uiNamespace getVariable "BIS_RscRespawnControlsMap_ctrlLocList", | ||
2, | 2, | ||
"Restricted for this part of mission!", | "Restricted for this part of mission!", | ||
myRespawnModule | myRespawnModule call BIS_fnc_objectVar | ||
] | ] call BIS_fnc_showRespawnMenuDisableItem;</sqf> | ||
|seealso= [[BIS_fnc_addRespawnInventory]] | |seealso= [[BIS_fnc_addRespawnInventory]] [[BIS_fnc_addRespawnPosition]] [[Arma 3: Respawn]] | ||
}} | }} |
Latest revision as of 15:47, 8 November 2023
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
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