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 c = 0; c < sizeof(AllActors); c++)
{
CreateActor(AllActors[c][askinid], AllActors[c][npcX], AllActors[c][npcY], AllActors[c][npcZ], AllActors[c][npcA]);
ApplyActorAnimation(c, AllActors[c][animclass], AllActors[c][animname], 4.1, 1, 0, 0, 0, 0);
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
|
Ohh now i feel so stupid lol, thank you alot
Re: Actor help -
povargek - 27.04.2016
Quote:
Originally Posted by N0FeaR
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
And you can't spawn actor in all virtual world's. In the SAMP is not an option.
|
OK i see.