Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Misc Functions

This chapter lists public misc functions that are available to developers.

Contents

afl_misc_fnc_addVehicleSpawner

Description

Creates a vehicle on a marker.

Parameters

  1. Eden Entity <OBJECT>
  2. Vehicle Name <STRING>
  3. Marker Name <STRING>

Returns

Nothing.

Usage

Example

[
    _vehicleConsole,
    "OPTRE_FC_Wraith_Tank",
    "mkrVehClose"
] call afl_misc_fnc_addVehicleSpawner;

afl_misc_fnc_hasItem

Description

Checks if unit has an item.

Parameters

  1. Unit <OBJECT>
  2. Item <STRING>

Returns

  1. Has Item <BOOL>

Usage

Example

[player, "AFL_statusMonitor"] call afl_misc_fnc_hasItem;

afl_misc_fnc_isDestroyed

Description

Checks if a vehicle is destroyed.

Parameters

  1. Vehicle <OBJECT>

Returns

  1. Is Destroyed <BOOL>

Usage

Example

[_veh] call afl_misc_fnc_isDestroyed;