Home   Help Search Login Register  

Author Topic: Object I.D.s  (Read 1014 times)

0 Members and 1 Guest are viewing this topic.

Lone-Wolf

  • Guest
Object I.D.s
« 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

Offline Worldeater

  • Former Staff
  • ****
  • Suum cuique
Re: Object I.D.s
« Reply #1 on: 26 Aug 2009, 20:26:37 »
Use the object command:

    _someObj = object 42

try { return true; } finally { return false; }

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re: Object I.D.s
« Reply #2 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.

Lone-Wolf

  • Guest
Re: Object I.D.s
« Reply #3 on: 26 Aug 2009, 20:36:19 »
Thanks guys, just what I was looking for!  :D