Author Topic: PAWN: Camera problems  (Read 3179 times)

0 Members and 1 Guest are viewing this topic.

Offline [AoD]NC

  • VC:MP Beta Tester
  • VC:MP Veteran
  • *
  • Posts: 616
  • AoD forever!
    • View Profile
    • KURWA MAĆ
PAWN: Camera problems
« on: February 24, 2010, 06:41:11 pm »
I have recently started to try scripting in pawn and i failed already on the beginning :/. I dont know why, but the camera for looking on spawn and after spawning is simple not working.

I have in the onGameModeInit the functions: SetCameraPos, SetCameraLookAt, SetPlayerPos. The same functions were in the ini and they worked there. Now im stuck on Kaufman Cabs. Even if i spawn, the camera is moving somewhere the spawn pos, but i cant move my ped [i see on the radar that only when im moving my mouse is the angle changing ;c ] and i dont see him even. So whats wrong? I have seen the example script and there are the 3 functions in onGameModeInit too so i guess that i must forgot something in another part of the script. Am i right?

Offline Boss

  • VC:MP Beta Tester (inactive)
  • Made Man
  • *
  • Posts: 229
  • Boss
    • View Profile
    • TDH Clan Site
Re: PAWN: Camera problems
« Reply #1 on: February 24, 2010, 06:44:57 pm »
SetPlayerPos doesn't work for spawn screens. Use SetPlayerStartPos instead.

Offline [AoD]NC

  • VC:MP Beta Tester
  • VC:MP Veteran
  • *
  • Posts: 616
  • AoD forever!
    • View Profile
    • KURWA MAĆ
Re: PAWN: Camera problems
« Reply #2 on: February 24, 2010, 07:15:54 pm »
Oh sorry 1 mistake: it is already SetPlayerStartPos.
* [AoD]NC slaps me

So is there any reason why it doesnt work? When compiling there are no errors so syntax must be right...

Offline Ettans

  • VC:MP Beta Tester
  • Wiseguy
  • *
  • Posts: 56
    • View Profile
Re: PAWN: Camera problems
« Reply #3 on: February 24, 2010, 08:14:20 pm »
Server problem/bug. Nothing scripting related.

Offline [AoD]NC

  • VC:MP Beta Tester
  • VC:MP Veteran
  • *
  • Posts: 616
  • AoD forever!
    • View Profile
    • KURWA MAĆ
Re: PAWN: Camera problems
« Reply #4 on: February 25, 2010, 05:30:00 pm »
I have tried the "stunt map" and there the camera was working properly. So why do you think its a server bug? My script is based on a new file, but as i said there are no pawn errors when compiling.

Screen when i spawn. Cant either move, shoot, kill.


Btw. can i use the SetCamera functions when the ped is spawned?