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
#2

This function will cause issues.
Reply
#3

Quote:
Originally Posted by Pottus
Посмотреть сообщение
This function will cause issues.
good post. explain? how will this cause issues
Reply
#4

https://sampforum.blast.hk/showthread.php?tid=542957
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)