Can someone explain me what i'm doing wrong with that script. Pretty new to all this.
_dir = getDir vehicle player;
_pos = getPos vehicle player;
_pos = [(_pos select 0)-5*sin(_dir),(_pos select 1)-5*cos(_dir),0];
_veh = createVehicle ["Lada1",[_pos select 0,_pos select 1,1], [], 0, 'NONE'];
_veh = setVariable ["Lada1", 123456, true];
Player moveInDriver _veh;
_veh setDir _dir;
Issue : Spawn 2 ladas ( not only one ) and when i enter them i get killed. I guess the second thing is a protection from rocket, and according to someone putting an ID to my lada should fix this. I must failed something.