Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
onAnimation
#6
Well yes I was missing it but I tried with quotations mark before, ok so I need animation ID. To get it I should use getAnimationID yup?
so, for instance

function onCommand(cmd, params)
{
if(cmd == "use")
{
local anim = getAnimationID("T_LEGSHAKE");
print(anim);
}
}

why this command shows me, depending on what I do, different values?


...........................................................EDIT ALERT


I dont know if this function works correctly so I made timer

setTimer(function()
{
local aniID = getAnimationID();
print(aniID);

}, 200, true);

and it shows me that the ID is 68
however

function onAnimation()
{
local aniID = getAnimationID();
if (aniID == 68)
{
print("HIT");
}
}
is not working
[Image: ?ip=193.70.2.209&port=27960&obrazek=4f73...e608b8.jpg]
Reply


Messages In This Thread
onAnimation - by imperior5 - 07.10.2016, 09:08
RE: onAnimation - by Bimbol - 07.10.2016, 12:18
RE: onAnimation - by imperior5 - 07.10.2016, 14:13
RE: onAnimation - by HammelGammel - 07.10.2016, 14:35
RE: onAnimation - by Bimbol - 07.10.2016, 15:26
RE: onAnimation - by imperior5 - 07.10.2016, 16:11
RE: onAnimation - by Bimbol - 07.10.2016, 17:02
RE: onAnimation - by imperior5 - 07.10.2016, 17:46
RE: onAnimation - by Son Goku - 07.10.2016, 17:52

Forum Jump:


Users browsing this thread: 1 Guest(s)