How to make Camera Interpolate only for 1 time in OnPlayerRequestClass
#2

Add some variable detecting whether they've already interpolated.

pawn Код:
public OnPlayerRequestClass(playerid, classid) {
    if(GetPVarInt(playerid, "HasPlayerInterpolated") != 1) {
        InterpolateCameraPos(...);
        SetPVarInt(playerid, "HasPlayerInterpolated", 1);
    }
    // ...
}
Reply


Messages In This Thread
How to make Camera Interpolate only for 1 time in OnPlayerRequestClass - by gurmani11 - 05.10.2014, 18:47
Re: How to make Camera Interpolate only for 1 time in OnPlayerRequestClass - by Dubya - 05.10.2014, 18:52
Re: How to make Camera Interpolate only for 1 time in OnPlayerRequestClass - by ZBits - 05.10.2014, 19:01
Re: How to make Camera Interpolate only for 1 time in OnPlayerRequestClass - by gurmani11 - 06.10.2014, 04:35

Forum Jump:


Users browsing this thread: 1 Guest(s)