Jump to content
Sign in to follow this  
 EO

How to place a unit/vehicle randomly...Help!

Recommended Posts

Hi Folks, having a little trouble getting this to work:confused:....I have placed five markers in the editor, i would like to randomly spawn a vehicle/unit/ammobox at one of the five placed markers on mission start. Any help or tips would be appreciated:)

Share this post


Link to post
Share on other sites

_randomPos = getMarkerPos (["marker1","marker2","marker3","marker4"] call BIS_fnc_selectRandom);

You can also group the vehicle/unit/ammobox with all five markers, that will cause the object to spawn randomly at one of the locations.

Share this post


Link to post
Share on other sites

Thanks for the reply R3vo...just to clarify...do i paste the code into the init of said unit/vehicle/ammobox...

Share this post


Link to post
Share on other sites

Easiest way to do what you're looking for is to simply just Group the object/vehicle to each marker using the F2 option.

So push F2 - drag a line from the vehicle to each marker.

Done.

Keep in mind that the location of the vehicle to start with will also count as a spawn position.

Share this post


Link to post
Share on other sites

@R3vo @Killzone_Kid @Imperator_Pete......thanks for the help and tips guys:cheers:

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  

×