11.07.2015, 13:14
Some players report me that the actors from business'es drop out of interiors..
How the hell i fix this ?
How the hell i fix this ?
![](http://i.imgur.com/Zp4C39x.png)
he actors are rendered before the interior is rendered and thus the actors fall down. /
|
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;
}