Forum Jump :

Author Message


Posts: 34
Rank:


Level: Member

Country: ba
Location:
Occupation:
Age:
In-game name:

 
#1 Posted at 2014-05-01 14:04        
     
So I wanted to do a End trigger that is Lose when enemy forces take a marked area and all blufor are killed in that area. I already know how to set a marker to change color when all units get kill in it using a triger.

But my question is how do I trigger END (Lose) when marker changes color to RED ?? So if all blufor are killed in the marked area it turnes red and mission Ends saying Mission Failed

Marker is default color or green or whatever if bluffors are in it and turns Red if all blufors are killed in the marked area and there is at least 1 opfor unit in it. So all I need now is how to trigger the END Mission Faield when the marker turnes Red.


Author Message


Posts: 27
Rank:


Level: Member

Country: au
Location: No idea
Occupation: Woolworths Trolley Boy
Age:
In-game name:

 
#2 Posted at 2014-05-11 00:31        
     
you could try this
spawn a civilian very far from the playing area (somewhere safe) and name him civ1

now in the trigger that turns the marker red, type also this in the on act

civ1 setdamage 1;

now for the trigger that ends the mission, type this in its condition

!alive civ1

so when the marker turns red it will kill the civilian and the ending trigger will wait until he's dead from that condition and then it will activate.


Advertisement


Author Message


Posts: 34
Rank:


Level: Member

Country: ba
Location:
Occupation:
Age:
In-game name:

 
#3 Posted at 2014-05-15 18:50        
     
I got it working whit trigger no need for civilian now the problem that I'm having is when unit enters the vehicle or turret in the marked area it counts him as he left the area and fires the trigger to change color and the END trigger but he is still in the marked area just in vehicle or turret.


Author Message


Posts: 1473
Rank:


Level: Member

Country: uk
Location:
Occupation:
Age:
In-game name:

 
#4 Posted at 2014-05-16 01:16        
     
You will need to add the command vehicle


example if you checking for a player in a trigger

cond
player in thislist
only works when player is not in vehicle

cond
vehicle player in thislist
works when in or out of vehicle






Tags: End, Marker, Trigger