Animation wont apply
#1

Im making a c4 command for my rp,
And its supposed to apply an animation,
Like he bends down, Plants the bomb, Then gets back up,
Then it lets you run away, Before it explodes,
But hes not doing anything

pawn Code:
ApplyAnimation(playerid,"BOMBER","BOM_Plant_Crouch_In",0.0,0,0,0,1,1);
Reply
#2

Look in vactions.pwn. There is an animation preloading before applying it.
Reply
#3

OnPlayerSpawn

PreloadAnimLib(playerid,"BOMBER");
Reply
#4

Try this.
pawn Code:
ApplyAnimation(playerid, "BOMBER", "BOM_Plant_Loop", 4.0, 1, 0, 0, 0, 0);
Reply
#5

Quote:
Originally Posted by [XG
Lj ]
Try this.
pawn Code:
ApplyAnimation(playerid, "BOMBER", "BOM_Plant_Loop", 4.0, 1, 0, 0, 0, 0);
That works, --In a way--
But he dosent get up and it kills me cause he dosent get back up so i cant escape
Reply
#6

I just took this from an old script of min.

ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);

And it works

Reply
#7

Quote:
Originally Posted by BM[UK
]
I just took this from an old script of min.

ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);

And it works

Dosent work for me
Reply
#8

Will work after a few attempts. Thats when you need to think about pre-loading the library so that it works first time, every time
Reply
#9

i dno the code for preloading
Reply
#10

PreloadAnimLib(playerid,"BOMBER");

its already been said once..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)