getModelInfo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\{\{GameCategory\|(arma[0123])\|[ _]?New[ _]Scripting[ _]Commands[ _]List\}\}" to "{{GameCategory|$1|New Scripting Commands}}")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Command|Comments=
{{Command|Comments=
____________________________________________________________________________________________


| arma3|Game name=
| arma3|Game name=
Line 7: Line 6:


|gr1= Object Manipulation |GROUP1=
|gr1= Object Manipulation |GROUP1=
____________________________________________________________________________________________


| Returns object's model info in format [modelName, modelPath, hasSkeleton]. Model path is suitable for use with [[createSimpleObject]] command. |DESCRIPTION=
| Returns object's model info in format [modelName, modelPath, hasSkeleton]. Model path is suitable for use with [[createSimpleObject]] command. |DESCRIPTION=
____________________________________________________________________________________________


| '''getModelInfo''' object|SYNTAX=
| '''getModelInfo''' object|SYNTAX=
Line 20: Line 17:
|x1= <code>_modelInfo = [[getModelInfo]] [[player]];</code>|EXAMPLE1=  
|x1= <code>_modelInfo = [[getModelInfo]] [[player]];</code>|EXAMPLE1=  
|x2= <code>_modelInfo = [[getModelInfo]] [[cursorObject]];</code>|EXAMPLE2=  
|x2= <code>_modelInfo = [[getModelInfo]] [[cursorObject]];</code>|EXAMPLE2=  
____________________________________________________________________________________________


| [[cursorObject]], [[cursorTarget]], [[createSimpleObject]], [[getObjectType]], [[getObjectTextures]], [[allMissionObjects]], [[setObjectViewDistance]], [[setObjectViewDistance]], [[objectParent]], [[object]] |SEEALSO=  
| [[cursorObject]], [[cursorTarget]], [[createSimpleObject]], [[getObjectType]], [[getObjectTextures]], [[allMissionObjects]], [[setObjectViewDistance]], [[setObjectViewDistance]], [[objectParent]], [[object]] |SEEALSO=  


|  |MPBEHAVIOUR=  
|  |MPBEHAVIOUR=  
____________________________________________________________________________________________
}}
}}



Revision as of 01:16, 17 January 2021

Hover & click on the images for description

Description

Description:
Returns object's model info in format [modelName, modelPath, hasSkeleton]. Model path is suitable for use with createSimpleObject command.
Groups:
Object Manipulation

Syntax

Syntax:
getModelInfo object
Parameters:
object: Object
Return Value:
Array - [modelName, modelPath, hasSkeleton]

Examples

Example 1:
_modelInfo = getModelInfo player;
Example 2:
_modelInfo = getModelInfo cursorObject;

Additional Information

See also:
cursorObjectcursorTargetcreateSimpleObjectgetObjectTypegetObjectTexturesallMissionObjectssetObjectViewDistancesetObjectViewDistanceobjectParentobject

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Bottom Section