02.05.2015, 08:28
(
Last edited by dominik523; 02/05/2015 at 05:04 PM.
)
Quote:
its because anim needs to pre-load, the first actor you spawn, it pre-loads the anim, and each next one will get that anim at first, as its already preloaded.
just preload the anim before the use, just like you do with a player anims. |
@Crayder: I'll try it now.
EDIT: I've tried to kill the spawned actor and I couldn't do any damage to it.
pawn Code:
CMD:actor(playerid)
{
new Float:pos[3];
GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
new actor = CreateActor(15, pos[0] + 1, pos[1] + 1, pos[2], 0.0);
SetActorVirtualWorld(actor, 0);
SetActorInvulnerable(actor, 0);
SetActorHealth(actor, 10.0);
GivePlayerWeapon(playerid, WEAPON_M4, 500);
return 1;
}