BIS fnc showRespawnMenuDisableItem: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " *\|= " to " ") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...) |
||
Line 1: | Line 1: | ||
{{Function | {{Function | ||
| arma3 | | arma3 | ||
|1.60 | |1.60 | ||
|gr1= Respawn | |gr1= Respawn | ||
|eff= global |MPeff= | |eff= global |MPeff= | ||
Line 12: | Line 12: | ||
* 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. | ||
| [mode, uiControl, item, message] call [[BIS_fnc_showRespawnMenuDisableItem]]; | |||
| [mode, uiControl, item, message] 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 24: | Line 24: | ||
|p4= '''message''': [[String]] - (Optional) Message shown when disabled item is selected | |p4= '''message''': [[String]] - (Optional) Message shown when disabled item is selected | ||
| | | | ||
|x1= <code><nowiki>[</nowiki>"disable",uiNamespace getVariable "BIS_RscRespawnControlsMap_ctrlRoleList",2,"Restricted for this part of mission!"] [[call]] [[BIS_fnc_showRespawnMenuDisableItem]];</code> | |x1= <code><nowiki>[</nowiki>"disable",uiNamespace getVariable "BIS_RscRespawnControlsMap_ctrlRoleList",2,"Restricted for this part of mission!"] [[call]] [[BIS_fnc_showRespawnMenuDisableItem]];</code> | ||
| [[BIS_fnc_addRespawnInventory]], [[BIS_fnc_addRespawnPosition]], [[Arma 3 Respawn]] | | [[BIS_fnc_addRespawnInventory]], [[BIS_fnc_addRespawnPosition]], [[Arma 3 Respawn]] | ||
}} | }} |
Revision as of 23:44, 17 January 2021
Description
- Description:
- Limits respawn loadout or role 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.
- Execution:
- call
- Groups:
- Respawn
Syntax
- Syntax:
- [mode, uiControl, item, message] 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
- item: Number or String - Index or name of item in the list
- message: String - (Optional) Message shown when disabled item is selected
- Return Value:
- Return value needed
Examples
- Example 1:
["disable",uiNamespace getVariable "BIS_RscRespawnControlsMap_ctrlRoleList",2,"Restricted for this part of mission!"] 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