Home   Help Search Login Register  

Author Topic: Dammaged AT ALL  (Read 563 times)

0 Members and 1 Guest are viewing this topic.

AnarCHy

  • Guest
Dammaged AT ALL
« on: 15 Aug 2004, 22:33:29 »
I know there is probably a thread somewhere covering this, and it is probably pretty basic, but I need to know one thing:

How can you detect if an object (default object on map) has been dammaged at all?


I am makin a mission where if you hit the fuel truck/fuel station the entire camp blows up (hehehe lgbx20).

Thanks,
AnarCHy

Offline Mud_Spike

  • Contributing Member
  • **
Re:Dammaged AT ALL
« Reply #1 on: 15 Aug 2004, 22:54:22 »
Code: [Select]
GetDammage object <objectId> > 0where objectId is the number of the fuel station seen by hitting the 'Show IDs' button in the editor.

Offline Zombie

  • Members
  • *
  • Beware the night, the zombie walks among you
    • USI
Re:Dammaged AT ALL
« Reply #2 on: 16 Aug 2004, 03:17:48 »
or getdammage unitname if it is a truck

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:Dammaged AT ALL
« Reply #3 on: 16 Aug 2004, 10:08:39 »
A better way is the Eventhandler "Hit", as getdammage is filled with bugs.

:beat: *Gets Shot* :beat:

Offline KTottE

  • Former Staff
  • ****
Re:Dammaged AT ALL
« Reply #4 on: 16 Aug 2004, 12:00:29 »
Even better is eventHandler  "dammaged", as this detects any damage, not just weapon-inflicted damage.
"Life is not a journey to the grave with the intention of arriving safely in a pretty and well preserved body, but rather to skid in broadside, thoroughly used up, totally worn out, and loudly proclaiming 'WOW What a Ride!'"