• Welcome to Vice City Multiplayer.
 

PAWN: Camera problems

Started by [AoD]NC, February 24, 2010, 03:41:11 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

[AoD]NC

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?

Boss

SetPlayerPos doesn't work for spawn screens. Use SetPlayerStartPos instead.

[AoD]NC

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

Ettans

Server problem/bug. Nothing scripting related.

[AoD]NC

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?