cmf_respawn_fnc_limit

From cluster wiki
Jump to navigation Jump to search


Hover & click on the images for description
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:
cmf_respawn_fnc_rallypoint cmf_respawn_fnc_setLimit
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