Jump to content
Sign in to follow this  
Evishion

West + east = friends script..any ?

Recommended Posts

Hey!

Im making a mission there the west and east side shall be on the same "team" agains the resistance forces.. but, is there any scripts who makes the west team and the east team to "friends" ? so they dont attack eachother ....?

-Thx

Share this post


Link to post
Share on other sites

I know a trick that does just that. smile_o.gif First create a west or an east soldier and set his spawn probability to 0. Then make a group with the soldier (in the init field type: group1 = group this). Then you can use createUnit to fill the group1 with soldiers of any chosen side and they will all be on the same side as the original soldier was. smile_o.gif I hope that helped.

Share this post


Link to post
Share on other sites
I know a trick that does just that. smile_o.gif First create a west or an east soldier and set his spawn probability to 0. Then make a group with the soldier (in the init field type: group1 = group this). Then you can use createUnit to fill the group1 with soldiers of any chosen side and they will all be on the same side as the original soldier was. smile_o.gif I hope that helped.

thanks.. gonna try it out smile_o.gif

Share this post


Link to post
Share on other sites

let me explain more the trick just mention.

If you dont want to use create unit you can just place a, for example, west soldier. set his propabilty precence (one of the sliders at the buttom of the place unit menu thingy) to 0. then place down your east soldiers and group them to the west soldier. making sure the west soldier is the group leader.

Now when you start the mission the west guy is not there and the east guys are now 'friendly' to west forces, but in reality there actully class as West. so if there is any east soldiers that where not grouped to a west leader they will reconise these east troops that are friend to west guys as enemys and other way round.

Share this post


Link to post
Share on other sites
let me explain more the trick just mention.

If you dont want to use create unit you can just place a, for example, west soldier. set his propabilty precence (one of the sliders at the buttom of the place unit menu thingy) to 0. then place down your east soldiers and group them to the west soldier. making sure the west soldier is the group leader.

Now when you start the mission the west guy is not there and the east guys are now 'friendly' to west forces, but in reality there actully class as West. so if there is any east soldiers that where not grouped to a west leader they will reconise these east troops that are friend to west guys as enemys and other way round.

thx alot biggrin_o.gif .. worked perfectly biggrin_o.gif

Share this post


Link to post
Share on other sites

you know...i am making a mission exactly like that! you stole my mission tounge_o.gif

Share this post


Link to post
Share on other sites
you know...i am making a mission exactly like that! you stole my mission  tounge_o.gif

lol biggrin_o.gif

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  

×