Player Class selection scene bug
#1

Hey, guys!

So, I created my own game mode from scratch. I added about 7 player classes, and I am having a bug at the selection scene. I can easily switch between the classes and choose them, but I cannot see the skin. Is this a scripting problem, or what?
Reply
#2

Most likely yes.
It could be because of using SetCameraPos or SetCameraLookAt to be somewhere else than where the actual skins are, but you should try showing your code.
Reply
#3

I did check my script, and found out that SetCameraPos and SetCameraLookAt were set at different locations. So, I changed the co-ordinates to the same ones as SetPlayerPos. This changed the camera location to the right one, but I still didn't see the skins.
Reply
#4

Код:
SetPlayerInterior(playerid,intid);
SetPlayerPos(playerid,xxx,yyy,zzz);
SetPlayerFacingAngle(playerid,playerzr);
SetPlayerCameraPos(playerid,xxx,yyy,zzz);
SetPlayerCameraLookAt(playerid,xxx,yyy,zzz);
You'll be missing the SetPlayerPosition, and maybe the SetPlayerInterior, on the callback OnPlayerRequestClass.

Quote:
Originally Posted by dimashr12345
Посмотреть сообщение
So, I changed the co-ordinates to the same ones as SetPlayerPos.
You may also be inside the skin.
Reply
#5

Quote:

You may also be inside the skin.

This was the problem, thanks. I changed the player position, and now everything functions all right.
Reply
#6

Awesome to hear.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)