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
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]](http://gothic-online.com.pl/tracker/?ip=193.70.2.209&port=27960&obrazek=4f73c04528050d2f3098b80600e608b8.jpg)