getModelInfo: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\{\{GameCategory\|(arma[0123])\|[ _]?New[ _]Scripting[ _]Commands[ _]List\}\}" to "{{GameCategory|$1|New Scripting Commands}}") |
Lou Montana (talk | contribs) 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
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