Jump to content
Wiki

Randomly place a unit in a vehicle ?

Recommended Posts

Hi.

I need to randomly place a unit in a vehicle.

 

I have 1 unit and 2 vehicles (car1 and car2)

At the beginning of the mission, I want my unit to be in either car1 or car2.

I want it to be random.

 

How can I do that?

 

Thanks

Share this post


Link to post
Share on other sites

This should do it:

 

_car = selectRandom [car1,car2];

guy moveinCargo _car;

Share this post


Link to post
Share on other sites

WIll try, thanks

 

It works, thanks a lot!

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

×