SA-MP Forums Archive
SetActorFacingAngle() - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP (https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: Bug Reports (https://sampforum.blast.hk/forumdisplay.php?fid=20)
+--- Thread: SetActorFacingAngle() (/showthread.php?tid=584566)



SetActorFacingAngle() - Logofero - 05.08.2015

Function SetActorFacingAngle();
Actors are not rotated, the function is very necessary.

Please fix it. I'm really waiting for a fix


Re: [Bug] When fix it? SetActorFacingAngle() - Shveps - 06.08.2015

Yes, and I thought, why not the right degree for dynamic creation. So this is a bug


Re: [Bug] When fix it? SetActorFacingAngle() - J0sh... - 06.08.2015

PHP код:
SetActorFacingAngleEx(actoridactormodelFloat:Angle)
{
    new 
Float:xFloat:yFloat:z;
    
GetActorPos(actoridxyz);
    
DestroyActor(actorid);
    
actorid CreateActor(actormodelxyzAngle);

Not sure if it works, but worth a try.


Re: [Bug] When fix it? SetActorFacingAngle() - Logofero - 06.08.2015

Quote:
Originally Posted by Jamester
Посмотреть сообщение
PHP код:
SetActorFacingAngleEx(actoridactormodelFloat:Angle)
{
    new 
Float:xFloat:yFloat:z;
    
GetActorPos(actoridxyz);
    
DestroyActor(actorid);
    
actorid CreateActor(actormodelxyzAngle);

Not sure if it works, but worth a try.
This variant I know. But the realization did not fulfill the requirements to re-create the actor disappears for 1-2 seconds.


Re: SetActorFacingAngle() - Crayder - 07.08.2015

1. Don't use J's function. It won't save properties such as anims.
2. Use Gammix's include.
3. Recreating is the only fix, actors will not restream instantly so you're stuck there unless you lower update rates.