Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ApplyAnimation not working #241

Open
Keviukas opened this issue Feb 28, 2021 · 2 comments
Open

ApplyAnimation not working #241

Keviukas opened this issue Feb 28, 2021 · 2 comments

Comments

@Keviukas
Copy link

Keviukas commented Feb 28, 2021

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
Copy link
Owner

ziggi commented Feb 28, 2021

@Keviukas
Copy link
Author

Keviukas commented Mar 1, 2021

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*

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants