Animations Problem
#1

Hi guys , i have a problem, when i set a animation to player some times it will not work , i think it will not work on walk i mean if you walking and animation set , some times it will not work on player and player skin is normal , for exp i want to Bomber anim set if player push N botton , but if he push N on walk this will not work !

here is my code for animations:
Код:
 	ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.1, 0, 0, 0, 0, 0, 1);
Reply
#2

You need to preload that animation when the player spawns otherwise he must play the animation twice to see some real effects. For doing that you can just put that line under OnPlayerSpawn
Reply
#3

Um, srry i'am a little bad in english , can you show me with some codes? What should i put on player spawn?
Reply
#4

Quote:
Originally Posted by PoniStar
Посмотреть сообщение
Um, srry i'am a little bad in english , can you show me with some codes? What should i put on player spawn?
In your Pawn (.pwn) file, you should be able to see something like:
Код:
public OnPlayerSpawn(playerid);
However, if I'm right about what you want, you'll be needing OnPlayerRequestClass instead.
Reply
#5

Код:
ApplyAnimation(playerid, "BOMBER", "null", 0.0, 0, 0, 0, 0, 0, 0);
Inside OnPlayerSpawn in order to preload the animation.
Reply
#6

thnx problem fixed
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)