28.10.2010, 20:12
okay, so can you change the camera position whilst in request class?
such as if skinid = 2
it changes the camera position ect
such as if skinid = 2
it changes the camera position ect
SetPlayerCameraLookAt(playerid, Float:x, Float:y, Float:z)
public OnPlayerRequestClass(playerid, classid)
{
if(classid == 1)
{
//SetPlayerPos
//SetPlayerCameraPos
//SetPlayerCameraLookAt
}
return 1;
}
you're making it on every classid you should do it like that:
public OnPlayerRequestClass(playerid, classid) { switch(classid) { case 1: { //SetPlayerPos //SetPlayerCameraPos //SetPlayerCameraLookAt } case 2: { //SetPlayerPos //SetPlayerCameraPos //SetPlayerCameraLookAt } } return 1; } |
//Blah
case 1,2,3,4,5,6:
{
//SetCamera Stuff
}
case 7,8,9,25,68,66,150:
{
//Insert cat food here!
}