Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: When object is destroyed  (Read 1165 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