GetObjectModelGroup: Difference between revisions
From Onset Developer Wiki
No edit summary |
No edit summary |
||
Line 15: | Line 15: | ||
== Example == | == Example == | ||
<syntaxhighlight lang="Lua> | |||
print("The object model "..modelId.." is part of group "..GetObjectModelGroup().." objects.") | |||
</syntaxhighlight> | |||
{{RelatedFunctions}} | {{RelatedFunctions}} |
Revision as of 16:56, 13 December 2019
Description
Returns the group name of an object model.
Syntax
GetObjectModelGroup(model)
Parameters
- model
The model identifier from Objects.
Return Value
- Returns the objects model category as string.
General, Buildings, Building Parts, Industrial, Other Parts, Small Items, Walls, Ramps Tubes, Roads, Props, Signs, Nature, Food, Interior, Clothing, Weapons, Specials, Misc
Example
print("The object model "..modelId.." is part of group "..GetObjectModelGroup().." objects.")
See also
- GetObjectCount
- GetObjectModelCount
- GetObjectModelName
- GetStreamedObjects
- GetObjectModel
- GetObjectLocation
- GetObjectRotation
- GetObjectScale
- GetObjectBoundingBox
- GetObjectSize
- EnableObjectHitEvents
- GetObjectMass
- SetObjectEditorSpeed
- SetObjectEditable
- SetObjectOutline
- SetObjectCastShadow
- SetObjectColor
- SetObjectEmissiveColor
- SetObjectTexture
- SetObjectAnimatedTexture