What am I doing wrong in this?
#1

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(PRESSED(newkeys & KEY_WALK))
{
ApplyAnimation(playerid, "PED", "ROB_Loop_Threat", 4.1, 1, 1, 1, 1, 1, 1);
SetPlayerAttachedObject(playerid,3,18729,2,-0.0, 0.0, 5.50, 84.60, 83.7, 1, 1, 1,0);
}


Attached object is working,The animation is not.
Reply
#2

Код:
if (PRESSED(KEY_WALK))
I think
Код:
if (newkeys & KEY_WALK)
would be enough as well.
Reply
#3

The animation is canceled by the other walk animation I think.
Reply
#4

your applyanimation timer argument is 1ms, change it to 0 for never ending loop
Reply
#5

still ain't working :c
Reply
#6

try to run ClearAnimation before applyanimation? or after keystate function with timer, maybe walk animation is why animation is not working.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)