AttachCameraToObject
#3

I set a one second timer, still didn't work.
Do you do the same thing on your mode?
If so, how do you do it?

I'll try the same thing using player objects instead.

EDIT:

Strange, it worked fine if I used player objects?

Here is the code I used.
pawn Код:
new JoinCameraObject[MAX_PLAYERS];
pawn Код:
public OnPlayerConnect(playerid)
{
    SetTimerEx("OnPlayerConnectEx", 1000, false, "d", playerid);
    return 1;
}
public OnPlayerConnectEx(playerid)
{
    SetJoinCamera(playerid);
    return 1;
}
pawn Код:
public SetJoinCamera(playerid)
{
    TogglePlayerSpectating(playerid, 1);
    JoinCameraObject[playerid] = CreatePlayerObject(playerid, 19300, 1510.9978, -883.4820, 63.7863, 0.0, 0.0, 25.0);
    AttachCameraToPlayerObject(playerid, JoinCameraObject[playerid]);
    return 1;
}
Reply


Messages In This Thread
AttachCameraToObject - by ReneG - 02.05.2012, 01:54
Re: AttachCameraToObject - by MP2 - 02.05.2012, 02:05
Re: AttachCameraToObject - by ReneG - 02.05.2012, 02:20
Re: AttachCameraToObject - by MP2 - 02.05.2012, 02:29
Re: AttachCameraToObject - by ReneG - 02.05.2012, 02:38
AW: AttachCameraToObject - by Nanory - 02.05.2012, 11:36
Re: AttachCameraToObject - by MP2 - 02.05.2012, 12:24

Forum Jump:


Users browsing this thread: 1 Guest(s)