GetVehicleRotationQuat
#1

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); 
Reply


Messages In This Thread
GetVehicleRotationQuat - by SrDonalds - 21.05.2015, 19:19
Re: GetVehicleRotationQuat - by Pottus - 22.05.2015, 01:40
Re: GetVehicleRotationQuat - by jamesbond007 - 22.05.2015, 01:50
Re: GetVehicleRotationQuat - by icra - 22.05.2015, 04:34

Forum Jump:


Users browsing this thread: 1 Guest(s)