25.07.2011, 10:20
Object
25.07.2011, 10:27
Ehm, what do u really want?
If u want that the camera shows the player's body front, then u have to change ur Camera Pos! Just go into the game, place urself in front of the helis and make coordinates! Then add x,y,z to Camera Pos and FINISH!!
If u want that the camera shows the player's body front, then u have to change ur Camera Pos! Just go into the game, place urself in front of the helis and make coordinates! Then add x,y,z to Camera Pos and FINISH!!
25.07.2011, 10:31
Have you tried increasing the Z position value of the heli?
25.07.2011, 10:34
Here is something that might help you. I had this problem before too , but this fixed it.
It's a function related to the streamer you are using.
Little example of how to use it:
It even works with SetVehiclePos.

Try it
It's a function related to the streamer you are using.
Little example of how to use it:
pawn Код:
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{ Streamer_UpdateEx(playerid,3134.690,-1667.340,608.922);
SetVehiclePos(GetPlayerVehicleID(playerid), 3134.690,-1667.340,608.922);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 0.0);
LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
}
//So first you use
Streamer_UpdateEx(playerid,x,y,z);// your coords
//then you use your
SetPlayerPos(playerid,x,y,z); // same coords as the UpdateEx

Try it
25.07.2011, 10:40
Thanks Jay, but I cant understand a bit: where I should put that "script"

25.07.2011, 10:42
Quote:
Thanks Jay, but I cant understand a bit: where I should put that "script"
![]() |
If you have a command and have this
pawn Код:
SetPlayerPos(playerid,x,y,z)//
pawn Код:
Streamer_UpdateEx(playerid,x,y,z)//same coords as the setplayerpos

25.07.2011, 10:42
No, I dont have teleports to those vehicles. :/
25.07.2011, 10:44
Well all I can think of trying now is going back into MTA , where I assume you created your vehicles.
And raising them a little bit more. Or since you only have one vehicle with the problem try doing something like this
Increasing the Z value as IPLEOMAX said.
The +5 is extra height. Try it
And raising them a little bit more. Or since you only have one vehicle with the problem try doing something like this
Increasing the Z value as IPLEOMAX said.
pawn Код:
AddStaticVehicle(425,352.35131836,1945.59265137,18.49162483+5,90.00000000,-1,-1); //Hunter
25.07.2011, 10:46
And If you have "AddStaticVehicles" lines over "CreateObject" move them to the lowest part.
Meh, It's Weird, but this is all i can think of now. xD
Tip: Use /dl cmd to check the Heli's Z coord which is correctly placed and copy that to the bugged one.
pawn Код:
CreateObject();...
CreateObject();...
CreateObject();...
//And then:
AddStaticVehicle();...
AddStaticVehicle();...
AddStaticVehicle();...
Tip: Use /dl cmd to check the Heli's Z coord which is correctly placed and copy that to the bugged one.
« Next Oldest | Next Newest »
Users browsing this thread: 2 Guest(s)