Arma 3
Zyme 22/mai./2016 às 19:41
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.
< >
Exibindo comentários 15 de 5
IM SORRY BUFFALO 22/mai./2016 às 20:08 
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 22/mai./2016 às 20:11 
I know how to randomize numbers, but there is not a parameter in createvehicle that allows rotation.
IM SORRY BUFFALO 22/mai./2016 às 20:17 
Escrito originalmente por 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
SeraphinicIna 22/mai./2016 às 21:23 
_veh = createVehicle ["whatever", getMarkerPos "markerwhatever", [], 0, "NONE"]; _veh setDir (selectRandom [10,20,30,40,50.....]);
MrMessy187 24/mai./2016 às 15:41 
_dir = floor(random 360); _object setDir _dir;

oh A.N.A.L.Y.S.I.S already said..
Última edição por MrMessy187; 24/mai./2016 às 15:42
< >
Exibindo comentários 15 de 5
Por página: 1530 50

Publicado em: 22/mai./2016 às 19:41
Mensagens: 5