BIS fnc showRespawnMenuDisableItem: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Added UI vars for list types)
m (Text replacement - "|eff= global |=" to "|eff= global |MPeff=")
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Function|= Comments
{{Function|Comments=
____________________________________________________________________________________________
____________________________________________________________________________________________


| arma3 |= Game name
| arma3 |Game name=


|1.60|= Game version
|1.60|Game version=


|eff= global |=
|eff= global |MPeff=
____________________________________________________________________________________________
____________________________________________________________________________________________


| Limits respawn loadout or role for [[Arma 3 Respawn: New Respawn Screen|new respawn screen]].
| 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.
* 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.  
  |= Description
  |DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


| [mode, uiControl, item, message] call [[BIS_fnc_showRespawnMenuDisableItem]]; |= Syntax
| [mode, uiControl, item, message] call [[BIS_fnc_showRespawnMenuDisableItem]]; |SYNTAX=


|p1= '''mode''': [[String]] - Available options are ''disable'', ''enable'' and ''state''
|p1= '''mode''': [[String]] - Available options are ''disable'', ''enable'' and ''state''
Line 25: Line 25:
|p4= '''message''': [[String]] - (Optional) Message shown when disabled item is selected
|p4= '''message''': [[String]] - (Optional) Message shown when disabled item is selected


|  |= Return value
|  |RETURNVALUE=
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
Line 31: Line 31:
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[BIS_fnc_addRespawnInventory]], [[BIS_fnc_addRespawnPosition]], [[Arma 3 Respawn: New Respawn Screen]] |= See also
| [[BIS_fnc_addRespawnInventory]], [[BIS_fnc_addRespawnPosition]], [[Arma 3 Respawn]] |SEEALSO=


}}
}}

Revision as of 22:50, 2 September 2019

Hover & click on the images for description

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:
Uncategorised

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

See also:
BIS_fnc_addRespawnInventoryBIS_fnc_addRespawnPositionArma 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

Notes

Bottom Section