ziggi / FCNPC

FCNPC - Fully Controllable NPC
Apache License 2.0
138 stars 31 forks source link

ApplyAnimation not working #241

Open Keviukas opened 3 years ago

Keviukas commented 3 years ago

My problem is that it doesn't play animations, I've tried it also with regular npcs - same deal. I've tried preloading the libs for the player and the npcs - nothing. here's my code `

public OnGamemodeInit() { kasininkas=FCNPC_Create("Kasininkas"); FCNPC_Spawn(kasininkas,217,-166.7957,1017.0024,19.7427); }

public Timeris(playerid) { SendClientMessage(playerid, 0xff0000,"a"); FCNPC_ApplyAnimation(kasininkas, "BAR", "Barserve_bottle"); SendClientMessage(playerid, 0xff0000,"a"); return 1; }

//I turn on the timer with - SetTimerEx("Timeris", 1000,true, "i",playerid);

`

Do any of u have an idea what might be wrong?

ziggi commented 3 years ago

https://github.com/ziggi/FCNPC/wiki/Natives#animations image

Keviukas commented 3 years ago

https://github.com/ziggi/FCNPC/wiki/Natives#animations image

But the players is always streamed in from when he just spawns, the player is near the NPC and the npc doesn't have to restream

I've tried out preloading libs using SetAnimationByName, and when I spawn, the animation plays for one time but, when I call this timer and try to get the animation to work then, it does nothing EDIT: SetAnimationByName*