SetVehicleVelocity doesn't work
#1

I have this codes;

pawn Код:
new Float:vPos[3];
GetVehicleVelocity(GetPlayerVehicleID(i), vPos[0],vPos[1],vPos[2]);
DestroyVehicle(GetPlayerVehicleID(i));
lastveh[i] = CreateVehicle(vChange[v][vmodel], pPos[0], pPos[1], pPos[2], pPos[3], 1 + random(127) + random(127), 1 + random(127) + random(127), -1);
SetVehicleVelocity(lastveh[i], vPos[0],vPos[1],vPos[2]);
SetVehicleVelocity seems like it doesn't work. It doesn't set my vehicle's velocity.
Reply
#2

You are returning the same co-ordinates.
pawn Код:
vPos[0],vPos[1],vPos[2]
EDIT:
NVM I was wrong I see you created another vehicle.
Reply
#3

u can set velocity only to occupated vehicles. u need to put urself to vehicle at first. than u could be able to set velocity.
Reply
#4

Quote:
Originally Posted by Om3n
Посмотреть сообщение
u can set velocity only to occupated vehicles. u need to put urself to vehicle at first. than u could be able to set velocity.
Thanks.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)