Help actor action
#1

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);
		}
	}
}
Reply
#2

ApplyActorAnimation
Reply
#3

You can't make them walk. Use an NPC for that.
Reply
#4

https://forum.sa-mp.com/showpost.php...postcount=1083
Reply
#5

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?
Reply
#6

How to give a weapon to actor and make it shot a player?
Reply
#7

Quote:
Originally Posted by ubunttu
Посмотреть сообщение
How to give a weapon to actor and make it shot a player?
Use fucking NPC.
Reply
#8

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.
Reply
#9

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)