[Ajuda] GetVehicleRotationQuat
#1

Estou fazendo um sistema que quando aperto Ctrl ele lanзa o objeto, sу que lanзa apenas pro lado onde o veiculo esta virado, ja quebrei a cabeзa tentando colocar o GetVehicleRotationQuat pra que o objeto seja lanзando pra frente com o veiculo inclinado.. (igual o hydra atira), alguem pode me ajudar com isso?

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, 00:54
Re: GetVehicleRotationQuat - by n0minal - 21.05.2015, 03:03
Re: GetVehicleRotationQuat - by SrDonalds - 21.05.2015, 13:15
Re: GetVehicleRotationQuat - by n0minal - 22.05.2015, 01:21
Re: GetVehicleRotationQuat - by SrDonalds - 22.05.2015, 05:41
Re: GetVehicleRotationQuat - by n0minal - 22.05.2015, 05:49
Re: GetVehicleRotationQuat - by SrDonalds - 23.05.2015, 04:46
Re: GetVehicleRotationQuat - by n0minal - 23.05.2015, 04:53
Re: GetVehicleRotationQuat - by lucas_mdr1235 - 23.05.2015, 13:22

Forum Jump:


Users browsing this thread: 3 Guest(s)