Arma 3 Scripting

BIS_fnc_boatRack01Init

  • Arma 3 v1.84

Function · Markdown · JSON · original wiki page

Description

Main function of the boat recovery system, which lets a player drive a boat onto a boat rack and load it with a hold action. The boat rack must support Vehicle in Vehicle transport. The function is called by the init event handler of the boat rack's class. It does nothing in the Eden Editor or when the boat rack is objNull.

It reads these entries of the rack's CfgVehicles >> class >> BoatRecoverySystem config class:

It then creates a local, repeatedly activated trigger ("ANYPLAYER", "PRESENT") around the rack, large enough to cover all recovery areas, and stores the rack on it in the variable "BIS_linkedBoatRack". The trigger uses:

Finally it spawns BIS_fnc_boatRack01InitAdjustZOffsets to adjust the rack to a boat that is already loaded at mission start.

Syntax

[boatRack] call BIS_fnc_boatRack01Init

Parameters:

Returns: Script Handle - handle of the spawned BIS_fnc_boatRack01InitAdjustZOffsets; Nothing in the Eden Editor or if the boat rack is objNull

Examples

Example 1

Event handler of the boat rack's class:

class EventHandlers
{
    init = "_this call BIS_fnc_BoatRack01Init;";
};

See also

BIS_fnc_boatRack01ActionAdd · BIS_fnc_boatRack01ActionRemove · BIS_fnc_boatRack01AdjustZOffset · BIS_fnc_boatRack01InitAdjustZOffsets · Arma 3: Vehicle in Vehicle Transport