Home   Help Search Login Register  

Author Topic: setdammage on an ID  (Read 447 times)

0 Members and 1 Guest are viewing this topic.

Dagon

  • Guest
setdammage on an ID
« on: 30 Nov 2004, 01:00:04 »
hey, in a mission i'm designing, I want the player to be able to use a radio command to destroy a pair of streetlights. However, streetlights are IDs, not objects - how can I destroy them? (with setdammage 1)

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:setdammage on an ID
« Reply #1 on: 30 Nov 2004, 01:06:31 »
I don't see why not

(object XXXX) setdammage 1

or you could just switch them off with:

(object XXXX) switchlight "off"

XXXX represents the ID number.


Planck
« Last Edit: 30 Nov 2004, 01:07:27 by Planck »
I know a little about a lot, and a lot about a little.

Lean Bear

  • Guest
Re:setdammage on an ID
« Reply #2 on: 30 Nov 2004, 18:35:36 »
Quote
or you could just switch them off with:

(object XXXX) switchlight "off"

^ That works? I thought you needed to use inFlame true/false to do that?

If anyone wants to know: to find the ID's of an object, all you need to do is (in the mission editor) click "show ID's" -- on the side menu bar. You'll need to zoom in real close to see the ID's though. Then, put the ID of the object into the script Planck posted.

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re:setdammage on an ID
« Reply #3 on: 30 Nov 2004, 21:01:28 »
Quote
^ That works? I thought you needed to use inFlame true/false to do that?
Nope, that's only for the 3rd party (addon) lights that are defined as fireplaces...

The default lights should be possible to turn of like that...
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.