OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Lone-Wolf on 26 Aug 2009, 20:15:26

Title: Object I.D.s
Post 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
Title: Re: Object I.D.s
Post by: Worldeater on 26 Aug 2009, 20:26:37
Use the object (http://community.bistudio.com/wiki/object) command:

    _someObj = object 42

Title: Re: Object I.D.s
Post by: bedges on 26 Aug 2009, 20:29:14
Bear in mind that in-map objects cannot be deleted. They can be setDamaged, but not removed outright - not by scripting at any rate.
Title: Re: Object I.D.s
Post by: Lone-Wolf on 26 Aug 2009, 20:36:19
Thanks guys, just what I was looking for!  :D