cmf_respawn_fnc_setLimit

From cluster wiki
Revision as of 18:11, 17 December 2022 by Eric (talk | contribs) (Created page with "{{CMF Function |game1=arma3 |version1=0.50 |game2=cmf3 |version2=2.1.0 |descr=This function will set the respawn limit of the supplied unit (and if they are in spectator br...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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:
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