Jump to content
Sign in to follow this  
The_Cobra

The leader flees...

Recommended Posts

Hi! I´m making a campaign and I going to do so the officer flees away when all his soldiers are dead. (You loose the mission if you kill the officer).

1 So if I make a trigger and set on: Resistance, Not present, Loose, and like: this and not alive officername in the field above on activation (forgot the name).

2 I make another trigger and set on: Resistance, Present, Switch and in the field above the on activation: this and not alive names-on-soldiers but what should i do now so the officer goes to the next waypoint?

I dont know if it´s right every thing i wrote here, if it´s wrong please tell me.. Thanks

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">nameoftheofficer move getpos nameofanobject

nameofanobject can be the name of an invisible-visible object/unit/marker/gamelogic

This should force the officer to move where you want him to move

Share this post


Link to post
Share on other sites

The presence/absence of a resistance unit is a condition in both triggers but doesn’t seem to relate to what you say you want to do, so I’ve stripped it (the ‘this’ in Condition) out:

1) Activation: None; Type: Loose; Condition: !Alive officername

Should go to the loose ending.  I’d add a Countdown/Timeout delay in to make it a little less harsh.

2) Activation: None; Type: Switch; Condition: Count Group officername == 1

The trigger will activate when there’s only one bloke left in the group; if the mission doesn’t end it must be the officer who’s left (lazy logic).  ‘Switch’ allows you to skip WPs so synch the trigger to the WP before the one you want the officer to flee to.

If you just want him to run to his next WP (as you say), forget the ‘Switch’ and add to the trigger:

On Activation: officername SetUnitPos “UPâ€; officername SetSpeedMode “FULLâ€; officername SetCombatMode “BLUEâ€; officername SetBehaviour “AWAREâ€

You may need to play around with these values to get the effect you want, or the closest approximation . . .

Share this post


Link to post
Share on other sites

Is it like this NAME domove getpos NAME

If i have a soldier "waiting for him" to the place he goes? I mean like this: In trigger:

ACTIVATION: Resistance, PRESENT, TYPE: Switch and in ON ACTIVATION: this and not alive SOLDIER2, not alive SOLDIER2... SOLDIER1 domove getpos SOLDIER1WAITING_FOR_HIM

Can this work?

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  

×