Arma 3 Scripting

BIS_fnc_carrier01EdenInit

  • Arma 3 v1.00

Function · Markdown · JSON · original wiki page

Description

Assembles a dynamic aircraft carrier in Eden Editor. The function reads the carrier base's multiStructureParts config array (pairs of part class name and memory point name), creates each part with createVehicle, aligns it with the base, places it at the base's memory point, disables its damage and stores the list of parts as [[part, memoryPoint], ...] in the base's public variable "bis_carrierParts". Parts are only created where isServer is true. Parts created by an earlier call are not deleted.

This is the assembly part of BIS_fnc_carrier01Init without the catapult action setup. It is meant for internal use: it is called from the carrier base's RegisteredToWorld3DEN and AttributesChanged3DEN Eden event handlers.

Syntax

carrier call BIS_fnc_carrier01EdenInit

Parameters:

Returns: Nothing

Examples

Example 1

Carrier base config (event handlers as given in the function's header):

class EventHandlers
{
    init = "_this call BIS_fnc_carrier01Init";
    AttributesChanged3DEN = "_this call BIS_fnc_carrier01EdenInit";
    Dragged3DEN = "_this call BIS_fnc_carrier01PosUpdate";
    RegisteredToWorld3DEN = "_this call BIS_fnc_carrier01EdenInit";
    UnregisteredFromWorld3DEN = "_this call BIS_fnc_carrier01EdenDelete";
};

See also

BIS_fnc_carrier01Init · BIS_fnc_carrier01EdenDelete · BIS_fnc_carrier01PosUpdate · BIS_fnc_destroyer01EdenInit