Home   Help Search Login Register  

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