Arma 3 Scripting

BIN_fnc_addSiteEntities

  • Arma 3 v1.94

Function · Markdown · JSON · original wiki page

Description

Register entities to a site, so they can be despawned with the rest when player leaves the area.

Note

This content is exclusive to the Arma 3 Contact Expansion.

Syntax

syntax inferred from the function header

[param0, param1] call BIN_fnc_addSiteEntities

Parameters:

Returns: BOOL - true if added

Function header

The comment at the top of the function's file in the game; this page's params, syntax, returns, description come from it.

/*
Description:
    Register entities to a site, so they can be despawned with the rest when player leaves the area.

Parameter(s):
    0: OBJECT - site logic. The site must be spawned for the function to work.
    1: ARRAY - entities to be added. Types can be mixed, the system will sort them out itself.

Returns:
    BOOL - true if added
*/