Arma 3 Scripting

Function in Object Manipulation

BIS_fnc_createSimpleObject

Also available as Markdown and JSON, or read the original wiki page.

Description

Creates non-simulated framerate and network performance friendly object - a Simple Object - and applies different adjustments to fake non-existing physX and engine interactions. The adjustments need either to be stored in the object config or provided as the function input, otherwise they need to be done manually.

Simple objects cannot be destroyed and do not interact with the environment. They are useful for creating low performance-demanding static compositions (walls, rocks, wrecks, …) and/or environments where shooting and collisions are not expected.

Syntax

[input, position, direction, followTerrain, forceSuperSimpleObject, local] call BIS_fnc_createSimpleObject

Parameters:

Returns: Object - the created Simple Object, objNull if creation failed

Examples

Example 1

["B_Boat_Armed_01_minigun_F", getPosWorld player, getDir player] call BIS_fnc_createSimpleObject;

Example 2

["B_Boat_Armed_01_minigun_F", player modelToWorldWorld [0,5,0], getDir player + 90, false, false] call BIS_fnc_createSimpleObject;

See also

Arma 3: Simple Objects · createSimpleObject · BIS_fnc_adjustSimpleObject · BIS_fnc_replaceWithSimpleObject · BIS_fnc_simpleObjectData · getPosWorld · setPosWorld