27.07.2016, 05:31
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...
Ongamemodeinit
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); //
Код:
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);
}
}
}



