Difference between revisions of "Init (limitedRespawns)"

From cluster wiki
Jump to navigation Jump to search
 
Line 75: Line 75:
<dt style="clear:both;font-weight:bold;position:absolute;padding:.3em;">See also:</dt>
<dt style="clear:both;font-weight:bold;position:absolute;padding:.3em;">See also:</dt>
<dd style="width:90%;padding:.3em .3em .3em 7em;column-count:4;">
<dd style="width:90%;padding:.3em .3em .3em 7em;column-count:4;">
<div style="display:block;">[[LimitedRespawnsSet]]</div>
<div style="display:block;">[[Setlives]]</div>
</dd>
</dd>



Latest revision as of 14:13, 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:

LimitedRespawns: Eric's Mission Framework

Syntax
Syntax:

[amount, team] call emf_limitedRespawns_fnc_init

Parameters:

amount: Number - Amount of respawns available for unit.

team: Number - (Optional) Only apply to supplied team [Default: 0].

Return Value:

Boolean - Returns true on success.

Examples
Example 1:
[5] call emf_limitedRespawns_fnc_init;
Example 2:
// 2 respawns for team 0
[2, 0] call emf_limitedRespawns_fnc_init;
// 5 respawns for team 1
[5, 1] call emf_limitedRespawns_fnc_init;
Additional Information
See also:


Notes