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: [solved]setdammage to obj (473384) after empty vehicle destroyed  (Read 1805 times)

0 Members and 1 Guest are viewing this topic.

Offline schuler

  • Contributing Member
  • **
Hello my good fellows,
Is there a way to get an object like a building (346577) to setdammage -1 and blow up, after an empty vehicle is destroyed?
What I have is an empty truck in a shed and I want the building to be destroyed after the truck is destroyed.
Cheers schuler
« Last Edit: 05 Jul 2008, 10:17:26 by schuler »
Semper Fi

Offline Spooner

  • Members
  • *
  • Mostly useless
    • Community Base Addons
Re: setdammage to obj (473384) after empty vehicle destroyed
« Reply #1 on: 30 Jun 2008, 19:58:01 »
Should do you:
Code: (init line of truck) [Select]
this addEventHandler ["KILLED", { ((getPos (_this select 0)) nearestObject 346577) setDamage 1 } ];
[Arma 2] CBA: Community Base Addons
[Arma 1] SPON Core (including links to my other scripts)

Offline schuler

  • Contributing Member
  • **
Re: setdammage to obj (473384) after empty vehicle destroyed
« Reply #2 on: 30 Jun 2008, 20:23:50 »
sure did  :D  ;)
thanks schuler
Semper Fi