Difference between revisions of "Setlives"
Jump to navigation
Jump to search
(One intermediate revision by the same user not shown) | |||
Line 28: | Line 28: | ||
<dt style="clear:both;font-weight:bold;position:absolute;padding:.3em;">Syntax:</dt> | <dt style="clear:both;font-weight:bold;position:absolute;padding:.3em;">Syntax:</dt> | ||
<dd style="width:90%;padding:.3em .3em .3em 7em;"><div style="display:block;"> | <dd style="width:90%;padding:.3em .3em .3em 7em;"><div style="display:block;"> | ||
[obj, amount] call ''' | [obj, amount] call '''emf_limitedRespawns_fnc_setLives''' | ||
</div></dd> | </div></dd> | ||
Line 54: | Line 54: | ||
<dt style="clear:both;font-weight:bold;position:absolute;padding:.3em;">Example 1:</dt> | <dt style="clear:both;font-weight:bold;position:absolute;padding:.3em;">Example 1:</dt> | ||
<dd style="width:90%;padding:.3em .3em .3em 7em;"><code style="border:#25A1A1 dashed 1px;display:block;"> | <dd style="width:90%;padding:.3em .3em .3em 7em;"><code style="border:#25A1A1 dashed 1px;display:block;"> | ||
[this, 5] call ''' | [this, 5] call '''emf_limitedRespawns_fnc_setLives'''; | ||
</code></dd> | </code></dd> | ||
Line 66: | Line 66: | ||
<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;">[[ | <div style="display:block;">[[init (limitedRespawns)]]</div> | ||
</dd> | </dd> | ||
</dl> | </dl> |
Latest revision as of 14:13, 26 March 2022
Description
- Description:
This function sets the amount of respawns, it's a utility incase the zeus sees a need to add more respawns for a player. It also functions as a revive to bring spectators back to life.
- Execution:
call
- Groups:
Limited Respawn: Eric's Mission Framework
Syntax
- Syntax:
[obj, amount] call emf_limitedRespawns_fnc_setLives
- Parameters:
obj: Object - Unit to apply it to.
amount: Number - Amount of respawns available for unit.
- Return Value:
Boolean - Returns true on success.
Examples
- Example 1:
[this, 5] call emf_limitedRespawns_fnc_setLives;
Additional Information
- See also:
Notes