How to createactor in interior
#7

Quote:
Originally Posted by NaS
Посмотреть сообщение
Like mentioned already, actors will fall through the ground in interiors if the interior is close to the regular map because at that point the interior isn't loaded.
That's because they will always stream in regardless of interior.

To fix it, set the actors back to their location occassionally.

You can do this using a timer, OnActorStreamIn/Out or when a player enters the interior:

Код:
new Float:x, Float:y, Float:z;
GetActorPos(id, x, y, z);
SetActorPos(id, x, y, z);
The new position will not sync to the server so GetActorPos retrieves the original position.

Another good idea would be using the Streamer Plugin for Actors and reduce their streamdistance. By default actors have a quite high streamdistance (SAMP's default streamdistance) so they will start falling even though you cannot see them yet (they stream in way before they get rendered).
It's solved. The problem was in virtual world. I forgot that in my gamemode script every interior has different virtual world.
Reply


Messages In This Thread
How to createactor in interior - by DarknesS1988 - 16.09.2018, 12:51
Re: How to createactor in interior - by v1k1nG - 16.09.2018, 13:01
Re: How to createactor in interior - by DarknesS1988 - 16.09.2018, 13:35
Re: How to createactor in interior - by v1k1nG - 16.09.2018, 14:07
Re: How to createactor in interior - by Florin48 - 16.09.2018, 14:28
Re: How to createactor in interior - by NaS - 16.09.2018, 17:08
Re: How to createactor in interior - by DarknesS1988 - 18.09.2018, 03:15

Forum Jump:


Users browsing this thread: 1 Guest(s)