Jump to content
Sign in to follow this  
Sabre=TE=

Making a trigger active

Recommended Posts

Is there a simple way of making a trigger active?

I have a mission where a trigger is activated when blufor are present but I only want this trigger to be active after the first two objectives are complete. In other words I don't want it set off inadvertently until the conditions for objectives one and two have been achieved.

Share this post


Link to post
Share on other sites

well if the objectives are to kill two people then use this int he "condition" field of a trigger, the trigger must have an a and b axis of 0 so it covers the whole play area ( so anywhere the guys have died it counts toward the trigger) , put this

!alive b1 && !alive b2

b1 and b2 are the guys that must be dead for the other part ( the on act field) to be activated.

it should be easy to use the same idea to make it work with any type of task

Share this post


Link to post
Share on other sites
well if the objectives are to kill two people then use this int he "condition" field of a trigger, the trigger must have an a and b axis of 0 so it covers the whole play area ( so anywhere the guys have died it counts toward the trigger) , put this

b1 and b2 are the guys that must be dead for the other part ( the on act field) to be activated.

it should be easy to use the same idea to make it work with any type of task

Sorry I don't think I explained myself correctly :o

I'm ok setting objectives etc with triggers.

In short what I'm trying to do is have a trigger activate when blufor are present but only if obj_1 and obj_2 are completed. I don't want the trigger to activate by accident if blufor are present but objectives 1 and 2 are not completed.

I just don't know how to write/compile it :j:

Share this post


Link to post
Share on other sites

What are obj_1 and 2? Boolean variables? Numbers? Tasks?

obj_1 && obj_2 && this

obj_1 == 1 && obj_2 == 1 && this

taskcompleted obj_1 && taskcompleted obj_2 && this

Share this post


Link to post
Share on other sites

Yow will need to define the variables say in an init

obj_1=0 and obj_2=0

when the objectives are complete set the variables to

obj_1=1 and obj_2=1

and then in the trigger set it to blufor present and in the condition box it's

this and obj_1=1 and obj_2=1

that should do it but I don't have my game pc at hand to check.

Beaten to it, Pretty much as above.

Share this post


Link to post
Share on other sites

I still can't get this to work!

The objectives are obj_1 to clear a town, that works and objective is complete when town clear. Objective 2 is to blow up some vehicles, that works and obj_2 is then complete. But when I then enter the trigger area of blufor present for objective 3 nothing happens.

I know it'll be me doing something stupid but I just can't fathom it out! Given the above what should I be putting in the condition? I'm new to all this stuff so wasn't sure about the init stuff but obj_1 && obj_2 && this doesn't work, neither does taskcompleted obj_1 etc

Any ideas? I need a dummies guide :)

Share this post


Link to post
Share on other sites
I still can't get this to work!

The objectives are obj_1 to clear a town, that works and objective is complete when town clear. Objective 2 is to blow up some vehicles, that works and obj_2 is then complete. But when I then enter the trigger area of blufor present for objective 3 nothing happens.

I know it'll be me doing something stupid but I just can't fathom it out! Given the above what should I be putting in the condition? I'm new to all this stuff so wasn't sure about the init stuff but obj_1 && obj_2 && this doesn't work, neither does taskcompleted obj_1 etc

Any ideas? I need a dummies guide :)

use the obj_1 && obj_2 && this and if the trigger is supposed to be the end of the mission try to add this to the on act field of the trigger.

endMission "end1";

it will end the mission with the debriefing saying mission complete..

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×