Vehicle's spawning the wrong way -
James Bob - 10.10.2013
Well I've recently changed the govvehicles cords around and now they're spawning like this:
pawn Код:
GovVehicles[0] = AddStaticVehicleEx(426,1498.132324,-1737.751220,13.546875,0.00000000,0,0,VEHICLE_RESPAWN); // Premier
GovVehicles[1] = AddStaticVehicleEx(409,1488.212280,-1737.698486,13.546875,0.00000000,0,0,VEHICLE_RESPAWN); // Stretch
GovVehicles[2] = AddStaticVehicleEx(426,1471.073120,-1737.854492,13.546875,0.00000000,0,0,VEHICLE_RESPAWN); // Premier
Re: Vehicle's spawning the wrong way -
Blast3r - 10.10.2013
pawn Код:
GovVehicles[0] = AddStaticVehicleEx(426,1498.132324,-1737.751220,13.5468759,90.00000000,0,0,VEHICLE_RESPAWN); // Premier
GovVehicles[1] = AddStaticVehicleEx(409,1488.212280,-1737.698486,13.546875,90.00000000,0,0,VEHICLE_RESPAWN); // Stretch
GovVehicles[2] = AddStaticVehicleEx(426,1471.073120,-1737.854492,13.546875,90.00000000,0,0,VEHICLE_RESPAWN); // Premier
Try that or:
pawn Код:
GovVehicles[0] = AddStaticVehicleEx(426,1498.132324,-1737.751220,13.546875,270.00000000,0,0,VEHICLE_RESPAWN); // Premier
GovVehicles[1] = AddStaticVehicleEx(409,1488.212280,-1737.698486,13.546875,270.00000000,0,0,VEHICLE_RESPAWN); // Stretch
GovVehicles[2] = AddStaticVehicleEx(426,1471.073120,-1737.854492,13.546875,270.00000000,0,0,VEHICLE_RESPAWN); // Premier
I moved the roatation on them, the first one is 90 and second one is 270, one of them should move it to the right way.
EDIT: Edited, made a mistake, I changed the color, not the rotation.
Re: Vehicle's spawning the wrong way -
EiresJason - 10.10.2013
Quote:
Originally Posted by Blast3r
pawn Код:
GovVehicles[0] = AddStaticVehicleEx(426,1498.132324,-1737.751220,13.546875,0.00000000,0,90.0,VEHICLE_RESPAWN); // Premier GovVehicles[1] = AddStaticVehicleEx(409,1488.212280,-1737.698486,13.546875,0.00000000,0,90.0,VEHICLE_RESPAWN); // Stretch GovVehicles[2] = AddStaticVehicleEx(426,1471.073120,-1737.854492,13.546875,0.00000000,0,90.0,VEHICLE_RESPAWN); // Premier
Try that or:
pawn Код:
GovVehicles[0] = AddStaticVehicleEx(426,1498.132324,-1737.751220,13.546875,0.00000000,0,270.0,VEHICLE_RESPAWN); // Premier GovVehicles[1] = AddStaticVehicleEx(409,1488.212280,-1737.698486,13.546875,0.00000000,0,270.0,VEHICLE_RESPAWN); // Stretch GovVehicles[2] = AddStaticVehicleEx(426,1471.073120,-1737.854492,13.546875,0.00000000,0,270.0,VEHICLE_RESPAWN); // Premier
I moved the roatation on them, the first one is 90 and second one is 270, one of them should move it to the right way.
|
That's the colors. The Facing Angle comes after the Z position.
pawn Код:
GovVehicles[0] = AddStaticVehicleEx(426,1498.132324,-1737.751220,13.546875,270.0,0,0,VEHICLE_RESPAWN); // Premier
GovVehicles[1] = AddStaticVehicleEx(409,1488.212280,-1737.698486,13.546875,270.0,0,0,VEHICLE_RESPAWN); // Stretch
GovVehicles[2] = AddStaticVehicleEx(426,1471.073120,-1737.854492,13.546875,270.0,0,0,VEHICLE_RESPAWN); // Premier
Re: Vehicle's spawning the wrong way -
Blast3r - 10.10.2013
Quote:
Originally Posted by EiresJason
That's the colors. The Facing Angle comes after the Z position.
pawn Код:
GovVehicles[0] = AddStaticVehicleEx(426,1498.132324,-1737.751220,13.546875,270.0,0,0,VEHICLE_RESPAWN); // Premier GovVehicles[1] = AddStaticVehicleEx(409,1488.212280,-1737.698486,13.546875,270.0,0,0,VEHICLE_RESPAWN); // Stretch GovVehicles[2] = AddStaticVehicleEx(426,1471.073120,-1737.854492,13.546875,270.0,0,0,VEHICLE_RESPAWN); // Premier
|
Oh, whoops, wasn't paying attention, my bad :O
Re: Vehicle's spawning the wrong way -
EiresJason - 10.10.2013
Hehe
Re: Vehicle's spawning the wrong way -
James Bob - 10.10.2013
Edit: I'm an idiot - fixed.
Re: Vehicle's spawning the wrong way -
EiresJason - 10.10.2013
Replace MODELID with the vehicle's model, so it would be 409.
pawn Код:
GovVehicles[1] = AddStaticVehicleEx(MODELID,1481.042846,-1737.547607,13.546875,90.0,0,0,VEHICLE_RESPAWN); //stretch
So:
pawn Код:
GovVehicles[1] = AddStaticVehicleEx(409,1481.042846,-1737.547607,13.546875,90.0,0,0,VEHICLE_RESPAWN); //stretch
EDIT: Hehe.