Arma 3
Zyme May 22, 2016 @ 7:41pm
Random rotation on createvehicle
How can I randomize the facing direction randomly on a building or vehicle with createvehicle?

When I adjust the direction parameter it just decides what direction to place the building from my position.

But I want to *rotate* the building randomly too as they will always face the same way.
< >
Showing 1-5 of 5 comments
IM SORRY BUFFALO May 22, 2016 @ 8:08pm 
im not sure if this is how it works, but maybe make an array with random roation numbers such as r_rotation = [184,190,100,40];

and createVehicle "yayayaya" r_rotation call BIS_fnc_selectRandom yayayaya? clearly this is a bad example but this is just a thought off the top of my head
Zyme May 22, 2016 @ 8:11pm 
I know how to randomize numbers, but there is not a parameter in createvehicle that allows rotation.
IM SORRY BUFFALO May 22, 2016 @ 8:17pm 
Originally posted by Zyme:
I know how to randomize numbers, but there is not a parameter in createvehicle that allows rotation.
maybe an array for setDir?
thingy setDir r_rotation call BIS_fnc_selectRandom; ? something similar
NobodysLaw May 22, 2016 @ 9:23pm 
_veh = createVehicle ["whatever", getMarkerPos "markerwhatever", [], 0, "NONE"]; _veh setDir (selectRandom [10,20,30,40,50.....]);
MrMessy187 May 24, 2016 @ 3:41pm 
_dir = floor(random 360); _object setDir _dir;

oh A.N.A.L.Y.S.I.S already said..
Last edited by MrMessy187; May 24, 2016 @ 3:42pm
< >
Showing 1-5 of 5 comments
Per page: 1530 50

Date Posted: May 22, 2016 @ 7:41pm
Posts: 5