Actors/Interiors problem.
#1

Hello,
i have mapped some of custom interiors for my server and now i want to place actors inside, but actors fall through objects. How can i fix that?
Reply
#2

It's caused by the stream rate. Since [I'm guessing] you are using streamer and dynamic objects, the actors are streaming to the players before the objects are. So as far as the actors know, there isn't an object there for them to stand on. The same principle applies to vehicles. On thing you could do to bypass this is use a regular CreateObject for the floor or use a negative stream distance for the streamer object (which makes it static).
Reply
#3

Detect when player enters the business/house/interior and then just simply re-set actors position.
Actors dont load objects, only players do.

You could make something like
pawn Код:
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid) {
    if(newinteriorid == yourinteriorid) {
        SetActorPos(MyActor, YourX,YourY,YourZ);   
        }
    }
    return 1;
}
Just an example of how you could do it, wont work with entirely custom interiors but I hope you get my point
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)