Difference between revisions of "cmf respawn fnc setLimit"
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 will set the respawn limit of the supplied unit (and if they are in spectator br...") |
|||
Line 24: | Line 24: | ||
|x1= {{code|lang=scilab|[myUnit, 5, true] call cmf_respawn_fnc_setLimit;}} | |x1= {{code|lang=scilab|[myUnit, 5, true] call cmf_respawn_fnc_setLimit;}} | ||
|seealso= [[cmf_respawn_fnc_limit]] [[cmf_respawn_fnc_rallypoint]] [[cmf_respawn_fnc_setLimit]] | |||
|var1= {{!}} GLOBAL {{!}}{{!}} Unit {{!}}{{!}} cmf_respawn_respawns {{!}}{{!}} A [https://community.bistudio.com/wiki/Number Number] variable containing the player's respawn limit | |var1= {{!}} GLOBAL {{!}}{{!}} Unit {{!}}{{!}} cmf_respawn_respawns {{!}}{{!}} A [https://community.bistudio.com/wiki/Number Number] variable containing the player's respawn limit | ||
|var2= {{!}} GLOBAL {{!}}{{!}} Unit {{!}}{{!}} cmf_respawn_deaths {{!}}{{!}} A [https://community.bistudio.com/wiki/Number Number] variable containing the player's deaths | |var2= {{!}} GLOBAL {{!}}{{!}} Unit {{!}}{{!}} cmf_respawn_deaths {{!}}{{!}} A [https://community.bistudio.com/wiki/Number Number] variable containing the player's deaths | ||
}} | }} |
Latest revision as of 22:05, 17 December 2022
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
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