OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Lone-Wolf on 26 Aug 2009, 20:15:26
-
Me again... :dry:
How do I refer to an object ID so I can treat it like an object?
The button "Show IDs" is all very well and good but I've no idea how to use them.
For example, if I wanted to deletevehicle a soldier, I would say "Deletevehicle solder1" but what would I type in in the place of 'soldier1' to delete an original object???
Yours,
Lone-Wolf
-
Use the object (http://community.bistudio.com/wiki/object) command:
_someObj = object 42
-
Bear in mind that in-map objects cannot be deleted. They can be setDamaged, but not removed outright - not by scripting at any rate.
-
Thanks guys, just what I was looking for! :D