Difference between revisions of "Init (limitedRespawns)"
Jump to navigation
Jump to search
m (Eric moved page LimitedRespawns to Init (limitedRespawns): Renamed function) |
|
(No difference)
|
Revision as of 14:09, 26 March 2022
Description
- Description:
This function initializes the the limited respawns library and sets the amount of respawns on a unit. it must be run locally (eg. from initPlayerLocal.sqf).
- Execution:
call
- Groups:
Limited Respawn: Eric's Mission Framework
Syntax
- Syntax:
[amount, team] call EMF_fnc_limitedRespawns
- Parameters:
amount: Number - Amount of respawns available for unit.
team: Number - (Optional) Only apply to supplied team [Default: nil].
- Return Value:
Boolean - Returns true on success.
Examples
- Example 1:
[5] call EMF_fnc_limitedRespawns;
- Example 2:
// 2 respawns for team 0
[2, 0] call EMF_fnc_limitedRespawns;
// 5 respawns for team 1
[5, 1] call EMF_fnc_limitedRespawns;
Additional Information
- See also:
Notes