21.05.2015, 19:19
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.
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);