BIS fnc showRespawnMenuDisableItem: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " \[\[Category:\{\{Name\|arma3\}\}:[_ ]Functions\|[^ ]+\]\]" to "") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 1: | Line 1: | ||
{{RV|type=function | {{RV|type=function | ||
| arma3 | |game1= arma3 | ||
|version1= 1.60 | |||
|1.60 | |||
|gr1= Respawn | |gr1= Respawn | ||
Line 9: | Line 8: | ||
|eff= global | |eff= global | ||
| Disables respawn loadout, role or position for [[Arma 3: Respawn]]. | |descr= 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. | * 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 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 | * If disabling a position then respawnReference must be supplied | ||
|s1=[mode, uiControl, listboxItem, message, respawnReference] call [[BIS_fnc_showRespawnMenuDisableItem]] | |s1= [mode, uiControl, listboxItem, message, respawnReference] call [[BIS_fnc_showRespawnMenuDisableItem]] | ||
|p1= '''mode''': [[String]] - Available options are ''disable'', ''enable'' and ''state'' | |p1= '''mode''': [[String]] - Available options are ''disable'', ''enable'' and ''state'' | ||
Line 25: | Line 24: | ||
|p5= '''respawnReference''': [[String]] - Reference to respawn position either Marker name or [[vehicleVarName|Object var name]] | |p5= '''respawnReference''': [[String]] - Reference to respawn position either Marker name or [[vehicleVarName|Object var name]] | ||
| | |r1= [[Nothing]] | ||
|x1= <code | |x1= <code>[ | ||
"disable", | "disable", | ||
uiNamespace getVariable "BIS_RscRespawnControlsMap_ctrlLocList", | uiNamespace getVariable "BIS_RscRespawnControlsMap_ctrlLocList", |
Revision as of 03:06, 13 June 2021
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