cmf_respawn_fnc_setLimit

From cluster wiki
Jump to navigation Jump to search


Hover & click on the images for description
Description
Description:
This function will set the respawn limit of the supplied unit (and if they are in spectator bring them back). Must be called where unit is local.
Execution:
Call
Groups:
CMF3: respawn
Syntax
Syntax:
[unit, limit, showHint] call cmf_respawn_fnc_setLimit
Parameters:
unit: Object - The unit to set the new limit on
limit: number - The new respawn limit
showHint: Boolean - (Optional, default true) When true shows a hint to the affected player
Return Value:
None
Examples
Example 1:
[myUnit, 5, true] call cmf_respawn_fnc_setLimit;
Additional Information
See also:
cmf_respawn_fnc_limit 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