Difference between revisions of "cmf respawn fnc limit"
Jump to navigation
Jump to search
(Created page with "{{CMF Function |game1=arma3 |version1=0.50 |game2=cmf3 |version2=2.1.0 |descr=This function limits the respawns for the local player. Once the limit has been reached the un...") |
(No difference)
|
Revision as of 17:58, 17 December 2022
Description
- Description:
- This function limits the respawns for the local player. Once the limit has been reached the unit will be kicked into spectator.
- Execution:
- Call
- Groups:
- CMF3: respawn
Syntax
- Syntax:
- [limit, condition] call cmf_respawn_fnc_limit
- Parameters:
- limit: Number - The respawn limit to assign the player
- condition: String - (Optional, default { true }) If false will not set a respawn limiter on the player
- Return Value:
- None
Examples
- Example 1:
// Allow 5 respawns for player [5] call cmf_respawn_fnc_limit;
- Example 2:
// Allow 5 respawns if player has role "SL" [5, { [player, "SL"] call cmf_fnc_common_isRole }] call cmf_respawn_fnc_limit;
Additional Information
- See also:
- See also needed
Internal Variables
Locality | Namespace | Name | Description |
---|---|---|---|
GLOBAL | Unit | cmf_respawn_respawns | A Number variable containing the player's respawn limit |
GLOBAL | Unit | cmf_respawn_deaths | A Number variable containing the player's deaths |
Events
- No events
Notes