Arma 3 Scripting

BIS_fnc_boatRack01ActionAdd

  • Arma 3 v1.84

Function · Markdown · JSON · original wiki page

Description

Part of the boat recovery system: adds the "Recover Boat" hold action (see BIS_fnc_holdActionAdd) to the boat that the player is driving near a boat rack. The function is the on-activation statement of the trigger that BIS_fnc_boatRack01Init creates around the boat rack; it is meant for internal use.

The function:

Syntax

[trigger, boat] call BIS_fnc_boatRack01ActionAdd

Parameters:

Returns: Nothing

Examples

Example 1

Trigger statements set by BIS_fnc_boatRack01Init:

_triggerLoad setTriggerStatements
[
    format ["%1 call BIS_fnc_boatRack01ActionCondition", [_triggerAreaSizeX, _triggerAreaSizeY, _triggerAreaSizeZ, _boatRecoveryPointList]],
    "[thisTrigger,thisList] call bis_fnc_boatRack01ActionAdd;",
    "[thisTrigger] call bis_fnc_boatRack01ActionRemove;"
];

See also

BIS_fnc_boatRack01Init · BIS_fnc_boatRack01ActionRemove · BIS_fnc_boatRack01AdjustZOffset · BIS_fnc_holdActionAdd