Arma 3 Scripting

getModelInfo

  • Arma 3 v1.50

Command · Markdown · JSON · original wiki page

Description

Returns object's model info. Model path is suitable for use with createSimpleObject command.

Syntax

getModelInfo object

Parameters:

Returns: Array - array in format [modelName, modelPath, hasSkeleton, placingPoint, mass]

Examples

Example 1

_modelInfo = getModelInfo player; // ["b_soldier_03.p3d", "a3\characters_f\blufor\b_soldier_03.p3d", true, [0,0,0]]

Example 2

_modelInfo = getModelInfo cursorObject;

Example 3

Get Z ASL using placing point:

_zASL = (heli modelToWorldWorld (getModelInfo heli select 3)) select 2;

See also

cursorObject · cursorTarget · createSimpleObject · getObjectType · getObjectTextures · objectParent · setVelocityTransformation · getUnitFreefallInfo · getEntityInfo · getMass