SA-MP Forums Archive
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:xFloat:yFloat:zFloat:a
GetVehiclePos(vehicleid,x,y,z); 
GetVehicleZAngle(vehicleid,a); 
+= 90
+= VehicleOffsetZ
+= (VehicleOffsetX floatsin(-adegrees)); 
+= (VehicleOffsetX floatcos(-adegrees)); 
Objeto CreateObject(18651,x,y,z,0,0,a,300.0); 
         
+= 270
+= (30 floatsin(-adegrees)); 
+= (30 floatcos(-adegrees)); 
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