Jump to content
Sign in to follow this  
kocrachon

Specific guys should die...

Recommended Posts

I was wondering how do I make a single trigger that is activated when 6 specific guys, in my mission specifically some Shilkas, die.

I am trying to make it to where 6 shilkas in the area need to be destroyed, they are in different areas and are surrounded by tons of enemys. But I want it to be one trigger that requires JUST them being destroyed, not all enemies. What do I write in the condition field?

Their names are Target1 Target2, and so forth.

Share this post


Link to post
Share on other sites

Hi,

You would need seven triggers for that, six with getdammage checks that set a condition to true (for example target1destroyed = 1) on destruction of the target and a seventh trigger that is activated when all six conditions are true (e.g. target1destroyed == 1 AND target2destroyed == 1 AND etc.) and then sets the objective to status done (if first objective for example "1" ObjStatus "done").

Regards,

Sander

Share this post


Link to post
Share on other sites

um, that sounds a little complicated. Cant I just set it so that the trigger is grouped with the target and have it set to not present?

Share this post


Link to post
Share on other sites

Dont listen to him, thats a very long way round.

You need something like

(not (alive Target1) || (GetDamage Target1 > 0.8)) && (not (alive Target2) || (GetDamage Target2 > 0.8)) && (not (alive Target3) || (GetDamage Target3 > 0.8)) ...... and so on

This would trigger when units kia or knackered, ie their damage is higher than 0.8.

Just add as many targets onto the end as required

You could also add the canMove command to the condition.

Hope it helps

Cheers

GC

Share this post


Link to post
Share on other sites
Dont listen to him, thats a very long way round.

You need something like

(not (alive Target1) || (GetDamage Target1 > 0.8)) && (not (alive Target2) || (GetDamage Target2 > 0.8)) && (not (alive Target3) || (GetDamage Target3 > 0.8)) ...... and so on

This would trigger when units kia or knackered, ie their damage is higher than 0.8.

Just add as many targets onto the end as required

You could also add the canMove command to the condition.

Hope it helps

Cheers

GC

for some reason I keep getting errors with this part hwen I put it in.

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">(not (alive Target1) || (GetDamage Target1 > 0.8)) && (not (alive Target2) || (GetDamage Target2 > 0.8))

Something about how the ( and ) are wrong or something.

Share this post


Link to post
Share on other sites

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">!lalive target1 and !alive target2 and !alive target3 and !alive target4 and !alive target5 and !alive target6

Share this post


Link to post
Share on other sites

Here's one more trigger condition alternative, if only to show that there's several ways of skinning this cat:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">({alive _x} count [target1,target2,target3,target4,target5,target6]==0) biggrin_o.gif

Share this post


Link to post
Share on other sites
Here's one more trigger condition alternative, if only to show that there's several ways of skinning this cat:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">({alive _x} count [target1,target2,target3,target4,target5,target6]==0)

biggrin_o.gif

Well one question. I am having an AV-8B harrier drop bombs on tanks. And some times the tank dies but the guys inside still live.

So would the !alive part still work or would I need something else?

Share this post


Link to post
Share on other sites
Here's one more trigger condition alternative, if only to show that there's several ways of skinning this cat:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">({alive _x} count [target1,target2,target3,target4,target5,target6]==0)

biggrin_o.gif

Well one question. I am having an AV-8B harrier drop bombs on tanks. And some times the tank dies but the guys inside still live.

So would the !alive part still work or would I need something else?

You could to make use of canFire and/or canMove to detect if a certain Shilka is "disabled" rather than "dead":

Example:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">({alive _x && canFire _x} count [target1,target2,target3,target4,target5,target6]==0)

Share this post


Link to post
Share on other sites

Another method is to start the target vehicle as empty, then give a crew team a "GET IN" order as their first way point. That is ensured to give you a precise control over the names of the vehicle and each crew member.

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  

×