Jump to content
Sign in to follow this  
steroidg

unit changing side

Recommended Posts

Hi everyone,

I'm working on a rescue mission where I need to have a bunch of west soldiers rescue a civilian form a eastern convoy.

I had the civilian join the western group once they're close enough. Since he's a civilian, he can just walk around without being harmed even if I get him to pick up a gun to shoot at the eastern soldiers. Therefore I want the east to shoot at him on sight once he's within the western group. Unfortunatly I can't find something like unit setSide "WEST" or something similar in the command reference. I thought about setting his status to renegade by lowering his score to negative, but then the west AI soldiers will shoot at him too, which is no good.

Can anyone think of a way to overcome this?

Cheers,

Steroid

Share this post


Link to post
Share on other sites

You can try the setFriend command, but i haven't had much luck with it.

I think the best way is to use BLUFOR unit which only looks like a civilian, and use the setCaptive command on it.

Share this post


Link to post
Share on other sites

Well hope this works, cuz i got it on a tut, but it mightn't work... Try this:

Civillian side "West"

or

Civillian side West

Hope it works out fore yow! yay.gif

Share this post


Link to post
Share on other sites

AgentJonathan, that will not work - side is a return only command!

Put the civilian units on the west or resistance side with resistance allied to west. Use setCaptive true until they are rescued.

Share this post


Link to post
Share on other sites

Hi,

Whoa that was tricky. I had to edit the mission.sqm so the civilian becomes "GUER" side and setCaptive true. Then when I moved him into an UAZ, all the east soldiers shot at the car and killed him. So I had to delay moving him into a car (so the soldiers get the idea that he was captured) and created a trigger so as soon as he got into the car, its status will be changed to captive so the east soldiers won't shoot at it... too much.

Thanks for all your replies.

Steroid

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  

×