PDA

View Full Version : Not alive win-trigger problem



Cr1lle
Dec 15 2006, 12:31
I made this assasination mission. After you kill the prime minister you are supposed to go to the evac area, wich triggers the win when you reach.

The trigger has the condition "not alive target", but the problem is that the trigger does not wait for the player to reach the trigger area.. it´s just instant win when the target dies..

Any ideas how to get around this?

MattXR
Dec 15 2006, 13:43
make that not alive target1 trigger just that, and on the activation field type endthis1=true

then have another trigger where u want the player to get too activated by the player and in the activation field type endthis2 = true

the have a third trigger with the end options and in the condition have endthis1 && endthis2

and that should work.

hope that isnt too confusing for you.

Deadfast
Dec 15 2006, 13:50
I think, that it should work this way:
Create trigger.
In "condition" (or something like that) type "not alive target".
Into "On activation" place: "kill = true"

Create second trigger.
Set it to BLUFOR present.
Into "On activation" place: "escape = true"

And then create the last trigger.
Into "condition" place: "kill && escape"
and select ending.


EDIT: Man, this message took 7 minutes to send ...
And after that I found that Matt replied same thing, but 7 minutes faster than me http://forums.bistudio.com/oldsmileys/biggrin_o.gif

Big Dawg KS
Dec 15 2006, 19:48
I made this assasination mission. After you kill the prime minister you are supposed to go to the evac area, wich triggers the win when you reach.

The trigger has the condition "not alive target", but the problem is that the trigger does not wait for the player to reach the trigger area.. it´s just instant win when the target dies..

Any ideas how to get around this?
A much simpler way than what the others suggested, keep your existing trigger and make this your condition:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">&#33;&#40;alive target&#41; && this[/QUOTE]

Basically I just added the condition &#39;this&#39; which would be the area trigger.

snipman
Dec 16 2006, 20:13
how do use that trigger for detecting all of the units in an array (like units1 and unit2) is dead. I can&#39;t seem to get it to work with <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">not alive &#91;u1&#93; + &#91;u2&#93;;[/QUOTE]

Big Dawg KS
Dec 16 2006, 21:16
how do use that trigger for detecting all of the units in an array (like units1 and unit2) is dead. I can&#39;t seem to get it to work with <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">not alive &#91;u1&#93; + &#91;u2&#93;;[/QUOTE]
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">&#40;{&#33;&#40;alive _X&#41;} count &#91;u1,u2&#93;&#41; &#62;= count &#91;u1,u2&#93;[/QUOTE]

Or

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">&#40;{&#33;&#40;alive _X} count &#91;u1,u2&#93;&#41; &#62;= 2[/QUOTE]

Or, for best results:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">&#40;{alive _X} count &#91;u1,u2&#93;&#41; &#60;= 0[/QUOTE]