Object loader
#1

When a player goes through a interior, He usually falls cause the Interior is not loaded totally. It takes time. I was wondering if there is a script or FS which can fix that issue?
PS: I have 2% knowledge on Pawn and Could really use some explaination.
Reply
#2

Just increase the Z co-ordinate. Means, increase the height of the player when he enters the interior.
Reply
#3

Quote:
Originally Posted by SoldierX
Посмотреть сообщение
When a player goes through a interior, He usually falls cause the Interior is not loaded totally. It takes time. I was wondering if there is a script or FS which can fix that issue?
PS: I have 2% knowledge on Pawn and Could really use some explaination.
Код:
// CMD:enter or w/e yours is
     {
          TogglePlayerControllable(playerid,0); // freezes you
          SetTimerEx("AntiFall", 4000, false, "i", playerid); // timer that unfreezes you, code in it gets activated when timer ends, so after 4 seconds
     }
Код:
forward AntiFall
public AntiFall
{
     If(IsPlayerConnected(playerid));
     {
          TogglePlayerControllable(playerid,1);
          return 1;
     }
}
Hope you get the idea, and sorry for my mistakes if there are any, on the phone atm
Reply
#4

If you're using Incognito's streamer, with dynamic objects, there's a function to load the objects:
pawn Код:
native Streamer_UpdateEx(playerid, Float:x, Float:y, Float:z, worldid = -1, interiorid = -1);
Do that before setting his position.
Freezing the player is a horrible way to do it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)