Home   Help Search Login Register  

Author Topic: If object destroyed then set height unit  (Read 1448 times)

0 Members and 1 Guest are viewing this topic.

Offline ual002

  • Members
  • *
If object destroyed then set height unit
« on: 20 Jul 2010, 05:31:12 »
Ok here's the issue.

I'm clueless.  Ive got 3 crew served weapons on the rooftop of a building.  If the building underneath crumbles the CSWs just float there.  Any solutions?  Ive got nothing.  Sepos triggered by getdammage?

-B

EDIT

I can setpos of the guns but I'm unsure how to trigger it when the building in question is destroyed.  The building has an Object ID # if that is any help.  Its usually flattened by either helo mounted FFAR or T90 main cannon.
« Last Edit: 20 Jul 2010, 19:40:04 by ual002 »

Offline Ironman

  • Former Staff
  • ****
    • {GSF} Home Page
Re: If object destroyed then set height unit
« Reply #1 on: 25 Jul 2010, 04:35:19 »
name the guns. EX: gun1, csw2, blah3

have a trigger grouped with the building.... when building (vehicle) not present should be the condition. Then do the setpos on those guns and setDamage/setArmor if necessary.
TS3 IP: tor.zebgames.com:9992

Offline ual002

  • Members
  • *
Re: If object destroyed then set height unit
« Reply #2 on: 01 Aug 2010, 00:59:53 »
It worked, thanks, I feel stupid, to delete the object entirely I used a funtion from the community base addons, or CBA.

Quote
[srchlt, m2a, box1, box2, box3, box4] call CBA_fnc_deleteEntity