Home   Help Search Login Register  

Author Topic: When object is destroyed  (Read 807 times)

0 Members and 1 Guest are viewing this topic.

Offline greg147

  • Contributing Member
  • **
    • Royal Air Assault Battalion
When object is destroyed
« on: 05 Jul 2005, 16:30:17 »
Hi all,

Searched about for this, I was sure I saw it somewhere before, but couldn't find it  :P

How do I make a trigger activate when a map object has reached a certain level of damage?
Like hitting a building with a rocket, so a trigger activates when it reaches like 0.6 damage  ;)

Thanks
Royal Air Assault Battalion - [L/Cpl] Greg
RAAB

Offline Blanco

  • Former Staff
  • ****
Re:When object is destroyed
« Reply #1 on: 05 Jul 2005, 16:37:09 »
Every mapobject  has an ID number.
Click "View ID" (or som like that) in the editor, zoom in and find the IDnr of that object.

Example : 12536

For the damage level of that object use this in the condition field of a trigger :


Code: [Select]
getdammage object 12536 > 0.6
See what I mean?


« Last Edit: 05 Jul 2005, 16:38:59 by Blanco »
Search or search or search before you ask.

Offline greg147

  • Contributing Member
  • **
    • Royal Air Assault Battalion
Re:When object is destroyed
« Reply #2 on: 05 Jul 2005, 16:39:09 »
Thats the one. Thanks   ;D

I knew it was something like that. I was trying stuff like 'object xxxxxx damage > 0.6'

Close  ;)

Thanks for the help   8)
Royal Air Assault Battalion - [L/Cpl] Greg
RAAB