Posts: 204
Threads: 53
Joined: Sep 2010
Reputation:
0
Hello i am using iee (interiorEnterExit) and face a problem ones i go to interior i fall of because objects are not loaded yet , so now i think i should freeze player for a sec or two till everything are loaded , but i do not really know where to call a timer i mean if there are callback like OnplayerEnterExit ? or how can i check if player are used enterexit pickup ?
Posts: 204
Threads: 53
Joined: Sep 2010
Reputation:
0
i sow call back OnPlayerInteriorChange if u mean that , but my most interiors are on InteriorID 0 so i dont think that will work and dont get what did u mean by this "when he press a key or type a command" IEE doent need to type comand or press a key this is not even a pickup i guess , because if that would be pick up i could use on player enter a pick up , fix me if i am wrong
Posts: 11,827
Threads: 33
Joined: Dec 2011
Reputation:
0
All original interiors excluding "Dillimore Gas Station" do have an interiorid not equal to 0. That being said, you most likely have custom interiors so yes, you will need to freeze the player so the objects can load.
In case you use streamer, you can also update a position before actually setting the player's position there with Streamer_UpdateEx function.
Yellow arrows are pickups but they do not trigger OnPlayerPickUpPickup unless you disable enter/exit and create them yourself (that's what most people tend to do).
Posts: 10,066
Threads: 38
Joined: Sep 2007
Reputation:
0
Yes, you fall because objects don't load on your client. That doesn't mean that others suffer the same problem. I find freeze timers so incredibly annoying. You're sitting there waiting for the objects to supposedly load when they already have. If you implement such system, provide an option to turn it OFF. You may want to base the interval on the player's ping, times 5. So someone with a good connection and 30ms ping will only have to wait 150 ms and someone with 400 ping will have to wait 2 seconds.
Posts: 11,827
Threads: 33
Joined: Dec 2011
Reputation:
0
Disable enter/exit and create your own pickups to enter the interiors (original or custom). After done that, post the part that teleports the player to the interior and perhaps some coordinates so we can understand whether we are talking about the original interiors or interiors with created objects through the script and whether they are dynamic or not.