Actors drop out of interior?
#3

Quote:
Originally Posted by Vince
Посмотреть сообщение
he actors are rendered before the interior is rendered and thus the actors fall down. /
If this is true (I don't doubt you, haven't tried scripting actors yet) this could work... If there isn't a way to ToggleActorControllable :P

pawn Код:
public OnActorStreamIn(actorid, forplayerid)
{
    new Float:pos[3];
    GetActorPos(actorid,pos[0],pos[1],pos[2]);
    if(floatcmp(pos[0],actorpos[0]) || floatcmp(pos[1],actorpos[1]) || floatcmp(pos[2],actorpos[2]))
    {
        SetActorPos(actorid,actorpos[0],actorpos[1],actorpos[2]);
        SetActorFacingAngle(actorid,actorpos[3]);
    }
    return 1;
}
Edit and corrected some...
Reply


Messages In This Thread
Actors drop out of interior? - by Metharon - 11.07.2015, 13:14
Re: Actors drop out of interior? - by Vince - 11.07.2015, 13:40
Re: Actors drop out of interior? - by liquor - 11.07.2015, 13:58

Forum Jump:


Users browsing this thread: 3 Guest(s)