Home   Help Search Login Register  

Author Topic: Civilian death trigger???  (Read 736 times)

0 Members and 1 Guest are viewing this topic.

Scalptrash

  • Guest
Civilian death trigger???
« on: 09 Nov 2002, 05:55:51 »
I am making a mission where civilians are neutral and I want the mission to end if one of them gets killed.  I am somewhat familiar with the getDammage command used with a trigger but only for specific named soldiers.  Is there a way to make a generic trigger so that if any civilian gets killed the mission will end?
Thanks in advance!

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
Re:Civilian death trigger???
« Reply #1 on: 09 Nov 2002, 06:15:27 »
There are a lot of ways to do that;

here's one of them:

Create a trigger, covering the area, where your civie's are
supposed to be.
Activated by: Civilian
Condition: this
Onactivation: civilist = count (thislist)
Name this trigger by using it's name field (let's say: triggerA)

Now create another trigger:

condition: count (list triggerA) < civlist

This trigger should become active, once one of the civi guys
inside the trigger area has been removed from that earth  ;)

~S~ CD
Dont argue with idiots....they will bring you down to their level and beat you there with experience.

How to use Waypoint type Scripted