Interpolating camera pos and lookat doesnt always work propertly
#5

Quote:
Originally Posted by James Coral
Посмотреть сообщение
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
if(IsPlayerNPC(playerid)) return SpawnPlayer(playerid);
    TextDrawShowForPlayer(playerid,Text:Box);
    TextDrawShowForPlayer(playerid,Text:Box2);
                if(is1st[playerid]==0)
                {
                InterpolateCameraPos(playerid, 2030.1234,1567.5530,29.6463, 2008.1212,1664.7034,14.2188, 5000, CAMERA_MOVE);
                InterpolateCameraLookAt(playerid, 2028.5165,1553.5148,30.8905, 2005.2192,1669.0897,12.7685, 5000, CAMERA_MOVE);
                is1st[playerid]=1;
                }
             else if(is1st[playerid]==1)
             {
    SetPlayerPos(playerid, 2005.2192,1669.0897,12.7685);
    SetPlayerFacingAngle(playerid, 228.7617);
    SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE3);
    CreateExplosion(2005.2192,1669.0897,12.7685, 11, 2.0);
           }
    return 1;
}
If i use this, when player will connect, he won't see the character the first time.
Reply


Messages In This Thread
Interpolating camera pos and lookat doesnt always work propertly - by pasha97 - 27.01.2013, 13:13
Re: Interpolating camera pos and lookat doesnt always work propertly - by MP2 - 27.01.2013, 13:28
Re: Interpolating camera pos and lookat doesnt always work propertly - by pasha97 - 27.01.2013, 13:30
Re: Interpolating camera pos and lookat doesnt always work propertly - by James Coral - 27.01.2013, 13:33
Re: Interpolating camera pos and lookat doesnt always work propertly - by pasha97 - 27.01.2013, 13:37

Forum Jump:


Users browsing this thread: 1 Guest(s)