Posts: 23
Threads: 8
Joined: Mar 2015
Reputation:
0
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?
Posts: 1,830
Threads: 49
Joined: Nov 2014
Reputation:
0
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.
Posts: 23
Threads: 8
Joined: Mar 2015
Reputation:
0
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.
Posts: 6,242
Threads: 8
Joined: Jun 2008
Код:
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.
Posts: 6,242
Threads: 8
Joined: Jun 2008