GetVehicleRotationQuat - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: GetVehicleRotationQuat (
/showthread.php?tid=574905)
GetVehicleRotationQuat -
SrDonalds - 21.05.2015
I'm doing a system that when tightening 'Ctrl' he throws the object, only throws just to the side where the vehicle're facing, already racked my brain trying to put the GetVehicleRotationQuat to the object to be launching forward with the vehicle inclined .. (as well as the hydra shoots), someone help me with this?
I'm using ****** translator, my English is not good.
PHP код:
new Float:x, Float:y, Float:z, Float:a;
GetVehiclePos(vehicleid,x,y,z);
GetVehicleZAngle(vehicleid,a);
a += 90;
z += VehicleOffsetZ;
x += (VehicleOffsetX * floatsin(-a, degrees));
y += (VehicleOffsetX * floatcos(-a, degrees));
Objeto = CreateObject(18651,x,y,z,0,0,a,300.0);
a += 270;
x += (30 * floatsin(-a, degrees));
y += (30 * floatcos(-a, degrees));
MoveObject(Objeto,x,y,z,35.0);
Re: GetVehicleRotationQuat -
Pottus - 22.05.2015
This function will cause issues.
Re: GetVehicleRotationQuat -
jamesbond007 - 22.05.2015
Quote:
Originally Posted by Pottus
This function will cause issues.
|
good post. explain? how will this cause issues
Re: GetVehicleRotationQuat -
icra - 22.05.2015
https://sampforum.blast.hk/showthread.php?tid=542957