Difference between revisions of "RepairRearmTrigger"

From cluster wiki
Jump to navigation Jump to search
(Created page with "<div style="padding:0.33em 2em;font-size:1.2em;font-weight:bold;display:block; border-bottom: #25A1A1 solid 1px; background-color:#E0FFFF;color:#25A1A1">Description</div> <dl...")
 
Line 103: Line 103:
<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;">[[EMFRoleSet]]</div>
<div style="display:block;">[[restrictedVehicle]]</div>
<div style="display:block;">[[rallyPoint]]</div>
<div style="display:block;">[[safeStart]]</div>
<div style="display:block;">[[slingPrimary]]</div>
<div style="display:block;">[[tracers]]</div>
<div style="display:block;">[[unitInvestigate]]</div>
</dd>
</dd>



Revision as of 09:13, 16 June 2021

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 Utility Functions: Eric's Mission Framework

Syntax
Syntax:

[vehicleArray, allowDamage] call EMF_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_fnc_restrictedVehicle;
Additional Information
See also:


Notes