Vehicle's spawning the wrong way
#1

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

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.
Reply
#3

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
Reply
#4

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
Reply
#5

Hehe
Reply
#6

Edit: I'm an idiot - fixed.
Reply
#7

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)