Jump to content
Sign in to follow this  
Jonnerz

Change unit from friendly to enemy

Recommended Posts

In my mission I have a jeep that goes up to 2 guards. I don't want to guards to attack the jeep until the jeep has gone up to them. How do i do this?

Share this post


Link to post
Share on other sites

You could place a "move" waypoint on one of the guards and set behaviour to "careless" and the attack mode to "never fire" or something like that.

Now make the second waypoint something like "search and destroy" with behaviours set to "attack" and "open fire - engage at will".

Finally put a small trigger around the guards which activates when the jeep reaches it and sync it with the first waypoint of the quards.

Share this post


Link to post
Share on other sites

This is what I did but they still attack eachother.

Share this post


Link to post
Share on other sites

Add a trigger at the guard location, where the jeep wil go trough, identify your vehicle with the variable jeep

Condition:

jeep in thislist

On Activation:

(driver jeep) addRating -10000

This will turn the jeep driver into a renegade.

Edited by Benny.

Share this post


Link to post
Share on other sites

set the jeep as captive at the start and remove this status when it gets close.

this setCaptive true;

Rather simple really ;)

Share this post


Link to post
Share on other sites

Thanks for that, still getting the hang of all the scripting commands. :)

Share this post


Link to post
Share on other sites
set the jeep as captive at the start and remove this status when it gets close.

this setCaptive true;

Rather simple really ;)

im sure that only works if the captive has no weapons..

^ Scratch that ^

Set both all units to this setCaptive true, it seems to work, even with weapons

Edited by Junker

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  

×