OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: one_shot_one_kill on 10 Sep 2002, 18:36:37

Title: Eliminating a groups as an Objective
Post by: one_shot_one_kill on 10 Sep 2002, 18:36:37
I have a group, called group e, (e = group units this).  I want as an objective to eliminate the group 100%.  As of right now I have a trigger in the game that has in its condition field (not alive group e).  When I start the mission I get an error message that is as follows :

error: not alive group e |#|!:  Error Type Group, expected object

My questions are:

Is this possible to have a group elimination as an objective?

If so how do you do it?
Title: Re:Eliminating a groups as an Objective
Post by: seanver on 10 Sep 2002, 19:59:29
Put in a trigger:

("Alive _x" count units groupname) == 0
Title: Re:Eliminating a groups as an Objective
Post by: macguba on 10 Sep 2002, 20:01:39
It sure is.   Put this in the condition field of your trigger

Count Units e == 0

syntax not guaranteed but I think its right.