SA-MP Forums Archive
Actor help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Actor help (/showthread.php?tid=605963)



Actor help - N0FeaR - 27.04.2016

Everthing thing works fine, but the problem is the virtualworld the actor only works on vw 0 i want it works for all worlds, maybe u guys can help me out, thanks advance!


PHP Code:
    for(new 0sizeof(AllActors); c++)
     {
          
CreateActor(AllActors[c][askinid], AllActors[c][npcX], AllActors[c][npcY], AllActors[c][npcZ], AllActors[c][npcA]);
        
ApplyActorAnimation(cAllActors[c][animclass], AllActors[c][animname], 4.110000);
        
SetPlayerVirtualWorld(c, -1);
        
SetActorInvulnerable(c);
    } 



Re: Actor help - povargek - 27.04.2016

You need use a SetActorVirtualWorld, no SetPlayerVirtualWorld


Re: Actor help - N0FeaR - 27.04.2016

Quote:
Originally Posted by povargek
View Post
You need use a SetActorVirtualWorld, no SetPlayerVirtualWorld
Ohh now i feel so stupid lol, thank you alot


Re: Actor help - povargek - 27.04.2016

Quote:
Originally Posted by N0FeaR
View Post
Ohh now i feel so stupid lol, thank you alot
And you can't spawn actor in all virtual world's. In the SAMP is not an option.


Re: Actor help - N0FeaR - 27.04.2016

Quote:
Originally Posted by povargek
View Post
And you can't spawn actor in all virtual world's. In the SAMP is not an option.
OK i see.