Applying animation on NPC.
#1

Good day. I have a problem - Somewhy animation on NPC doesnt work. Anyone haves a solution? Server sets the skin without any problem btw

I have this in OnPlayerSpawn callback:

pawn Код:
ApplyAnimation(playerid, "DANCING", "null", 0.0, 0, 0, 0, 0, 0);
if (!strcmp(userName, "Sokejas3", true))
{
    ApplyAnimation(playerid, "DANCING", "DAN_Left_A", 4.1, 1, 1, 1, 1, 0, 1);
    SetPlayerSkin(playerid, 60);
}
Thanks in advance.
Reply
#2

up. Anyone?
Reply
#3

https://sampforum.blast.hk/showthread.php?tid=447381
https://sampforum.blast.hk/showthread.php?tid=447287

Seriously? Quit posting the same fucking thread over and over again! Go read the forum rules, too. You clearly haven't done so. For someone who has been registered on this forum for two years, you should know the rules by now.

As for applying an animation to an NPC, it doesn't seem like it's possible. You would have to record the animation when you recorded the NPC. Remember to search before posting next time; I found that answer after reading about 10 responses to multiple different threads- all basically the same thing.
Reply
#4

You posted here already, you could have bumped it.
https://sampforum.blast.hk/showthread.php?tid=447381

Please click on the link below as it contains a tutorial which will guide you through the problem you have.
https://sampforum.blast.hk/showthread.php?tid=276088

- Firewire
Reply
#5

Quote:
Originally Posted by Firewire
Посмотреть сообщение
Please click on the link below as it contains a tutorial which will guide you through the problem you have.
https://sampforum.blast.hk/showthread.php?tid=276088
I don't think you clearly understand what the OP needs. According to the topic, the OP wants to be able to use ApplyAnimation on an NPC- not force the NPC to use a command.

By the way, you don't need to add a "signature" to the bottom of every single one of your posts. There's an automatic signature feature built into the forum software.
Reply
#6

Quote:
Originally Posted by RealCop228
Посмотреть сообщение
https://sampforum.blast.hk/showthread.php?tid=447381
https://sampforum.blast.hk/showthread.php?tid=447287

Seriously? Quit posting the same fucking thread over and over again! Go read the forum rules, too. You clearly haven't done so. For someone who has been registered on this forum for two years, you should know the rules by now.

As for applying an animation to an NPC, it doesn't seem like it's possible. You would have to record the animation when you recorded the NPC. Remember to search before posting next time; I found that answer after reading about 10 responses to multiple different threads- all basically the same thing.
Oh god, just report it and its all done, why the hell are you cursing other members ONCE AGAIN? Its just a forum of a game, you are taking it too seriously. If it hurts you because of 3 topics with same shit writen inside, IM SORRY!

Okay, Im going to try to record with an animation set. I've been searching for a way to set the animation without re-recording it, but seems like there's no other way
Reply
#7

Try preloading the animation library before you use it
Reply
#8

Quote:
Originally Posted by BaubaS
Посмотреть сообщение
just report it and its all done
No, not really. Generally all the moderators will do is remove/lock the threads and possibly give you an infraction. I'm making sure that you know your mistakes so if and when you make the same mistake again, you'll be removed from the forum or given a heftier infraction.

Quote:
Originally Posted by BaubaS
Посмотреть сообщение
why the hell are you cursing other members ONCE AGAIN?
I'm not cursing other members. You might want to go check your definition of a curse; or perhaps just work on those English skills of yours.

Quote:
Originally Posted by BaubaS
Посмотреть сообщение
Its just a forum of a game, you are taking it too seriously.
I have spent 3 years as a registered member of this forum; three years getting to know people and attempting to assist where I can. Excuse me if it's annoying as hell when someone breaks the forum rules over and over again.

Quote:
Originally Posted by BaubaS
Посмотреть сообщение
If it hurts you because of 3 topics with same shit writen inside, IM SORRY!
Apology accepted- just don't do it again.
Reply
#9

As far as I know, when you get like 5 infraction, you can't post, so that wouldn't be good for me, so I think I understand my mistake after getting a infraction, but anyway thanks ^^. Didn't knew the correct word that time, anyway, that time it was me and don't say its annoying.

RedFusion > Im already pre-loading all libraries of animations when player spawns, but it doesn't work on NPC.

Recording with animation set works, so you can lock&archieve this one.
Reply
#10

I applied animations to NPCs before, worked nicely.
Did you preload the animation for both the players and the NPC performing the animation?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)