Help actor action - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Server (
https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (
https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Help actor action (
/showthread.php?tid=613371)
Help actor action -
ubunttu - 27.07.2016
I trying to make somethings in actors like walk, but its not work...
I apply animation, its work in players and not in actors idk why...
Код:
RobotInfo[1][ractor] = CreateActor(305, 2124.9263,-1301.1108,23.8345, 1.8800); //
Ongamemodeinit
Код:
SetTimer("AtualizarRobots", 1000,1);
Код:
forward AtualizarRobots(); public AtualizarRobots() {
new actstring[128];
for(new a; a< GetActorPoolSize()+1; ++a) {
if(IsValidActor(a)) {
new Float:x, Float:y, Float:z;
GetActorPos(a, x, y, z);
Delete3DTextLabel(RobotInfo[a][rnametag]);
format(actstring, sizeof(actstring), "Robot %i", a);
RobotInfo[a][rnametag] = Create3DTextLabel(actstring, COLOR_WHITE, x,y,z+1, NAME_DRAWDISTANCE, 0, 0);
ApplyAnimation(a,"PED","WALK_gang1",4.1,1,1,1,1,1);
}
}
}
Re: Help actor action - justice96 - 27.07.2016
ApplyActorAnimation
Re: Help actor action -
Onfroi - 27.07.2016
You can't make them walk. Use an NPC for that.
Re: Help actor action -
GangstaSunny - 27.07.2016
https://forum.sa-mp.com/showpost.php...postcount=1083
Re: Help actor action -
ubunttu - 27.07.2016
Quote:
Originally Posted by justice96
ApplyActorAnimation
|
Animation is work, but actor walk and go back to old pos
Quote:
Originally Posted by Onfroi
You can't make them walk. Use an NPC for that.
|
Quote:
Originally Posted by GangstaSunny
|
Npc's get slots from server right? I buyed a samp service 30 slots, i can't use it... There is a NPC system no using slots like actors?
This kalcor post have almost 2 years.. nothing change?
---
There is a way to make a actor shot a player?
Re: Help actor action -
ubunttu - 28.07.2016
How to give a weapon to actor and make it shot a player?
Re: Help actor action -
Luicy. - 28.07.2016
Quote:
Originally Posted by ubunttu
How to give a weapon to actor and make it shot a player?
|
Use fucking NPC.
Re: Help actor action -
Onfroi - 28.07.2016
Quote:
Originally Posted by ubunttu
How to give a weapon to actor and make it shot a player?
|
You can't, actors are made to just stand in a permanent position, the only thing you can do is apply animations to them, THAT'S IT, so you either use NPCs or you don't.
Re: Help actor action -
ubunttu - 28.07.2016
I just wanted make like was in GTA V, sometimes the NPC attack back
I've remove this topic from my favorites, any way pls PM me.