object: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
back to [[Scripting_Reference#O|COMREF]] | |||
<h2 style="color:#000066">'''object ''id'''''</h2> | <h2 style="color:#000066">'''object ''id'''''</h2> | ||
'''Operand types:''' | '''Operand types:''' | ||
id: [[Number]] | '''id:''' [[Number]] | ||
'''Type of returned value:''' | '''Type of returned value:''' | ||
Line 11: | Line 14: | ||
'''Description:''' | '''Description:''' | ||
Return object with given | Return object with given '''id'''. | ||
Object ID's can be checked in mission editor. | |||
'''Example:''' | '''Example:''' | ||
_obj = '''object''' 1 | _obj = '''object''' 1 | ||
'''Comments''' | '''Comments''' | ||
To check object ID's in the Mission Editor click on "Show IDs" and zoom in close. | |||
To check object | |||
Available in v1.75 (Resistance) and above. | Available in v1.75 (Resistance) and above. | ||
Since version 1.85, you can't [[setPos]] island objects to get them out of the way, but you can use [[setDamage]] 1 to get trees or other flora out of the way. | Since version 1.85, you can't [[setPos]] island objects to get them out of the way, but you can use [[setDamage]] 1 to get trees or other flora out of the way. |
Revision as of 19:45, 15 April 2006
back to COMREF
object id
Operand types:
id: Number
Type of returned value:
Description:
Return object with given id.
Object ID's can be checked in mission editor.
Example:
_obj = object 1
Comments
To check object ID's in the Mission Editor click on "Show IDs" and zoom in close.
Available in v1.75 (Resistance) and above.
Since version 1.85, you can't setPos island objects to get them out of the way, but you can use setDamage 1 to get trees or other flora out of the way.