Difference between revisions of "RepairRearmTrigger"

From cluster wiki
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 18: Line 18:
<dt style="clear:both;font-weight:bold;position:absolute;padding:.3em;">Groups:</dt>
<dt style="clear:both;font-weight:bold;position:absolute;padding:.3em;">Groups:</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;">
Gameplay Utility Functions: Eric's Mission Framework
Gameplay: Eric's Mission Framework
</div></dd>
</div></dd>
  </dl>  
  </dl>  
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;">
[vehicleArray, allowDamage] call '''EMF_fnc_repairRearmTrigger'''
[vehicleArray, allowDamage] call '''emf_gameplay_fnc_repairRearmTrigger'''
</div></dd>
</div></dd>


Line 90: Line 90:
<dd style="width:90%;padding:.3em .3em .3em 9em;"><code style="border:#25A1A1 dashed 1px;display:block;">
<dd style="width:90%;padding:.3em .3em .3em 9em;"><code style="border:#25A1A1 dashed 1px;display:block;">
myCrewman setVariable ["ms_tankCrew", true, true];<br>
myCrewman setVariable ["ms_tankCrew", true, true];<br>
[myVehicle, "ms_tankCrew", "You require a crewman kit to operate this position"] call '''EMF_fnc_restrictedVehicle''';
[myVehicle, "ms_tankCrew", "You require a crewman kit to operate this position"] call '''emf_gameplay_fnc_repairRearmTrigger''';
</code></dd>
</code></dd>
</dl>  
</dl>  
Line 106: Line 106:
<div style="display:block;">[[rallyPoint]]</div>
<div style="display:block;">[[rallyPoint]]</div>
<div style="display:block;">[[safeStart]]</div>
<div style="display:block;">[[safeStart]]</div>
<div style="display:block;">[[setRole]]</div>
<div style="display:block;">[[slingPrimary]]</div>
<div style="display:block;">[[slingPrimary]]</div>
<div style="display:block;">[[tracers]]</div>
<div style="display:block;">[[tracers]]</div>
Line 118: Line 119:


<!-- CATEGORIES -->
<!-- CATEGORIES -->
[[Category:Gameplay Utility Functions: Eric's Mission Framework]]
[[Category:Gameplay Functions: Eric's Mission Framework]]
[[Category:Functions: Eric's Mission Framework]]
[[Category:Functions: Eric's Mission Framework]]

Latest revision as of 13:26, 26 March 2022

Description
Description:

This function will repair and rearm objects passed to it in KOTH style. Recommended to be used from a trigger, but can be used from anywhere.

Execution:

call

Groups:

Gameplay: Eric's Mission Framework

Syntax
Syntax:

[vehicleArray, allowDamage] call emf_gameplay_fnc_repairRearmTrigger

Parameters:

vehicleArray: Array of objects - Array of units to try and apply to.

allowDamage: Boolean - (Optional) when true makes vehicle invincible for the duration of the repair/rearm session. [Default: true]

Return Value:

Boolean - Returns true on success.

Examples
Example 1:
Activation:

Any Player

Activation Type:

Present

Condition:

this

Server Only:

True

Repeatable:

True

On Activation:
myCrewman setVariable ["ms_tankCrew", true, true];
[myVehicle, "ms_tankCrew", "You require a crewman kit to operate this position"] call emf_gameplay_fnc_repairRearmTrigger;
Additional Information
See also:


Notes