EO 9030 Posted July 27, 2015 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
R3vo 2535 Posted July 27, 2015 _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
EO 9030 Posted July 27, 2015 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
killzone_kid 1219 Posted July 27, 2015 https://community.bistudio.com/wiki/setVehiclePosition Share this post Link to post Share on other sites
Imperator[TFD] 444 Posted July 28, 2015 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
EO 9030 Posted July 28, 2015 @R3vo @Killzone_Kid @Imperator_Pete......thanks for the help and tips guys:cheers: Share this post Link to post Share on other sites