/sit makes it nonrp
#1

Probably alot of people faced this issue. So, I have this command, /chairsit:
pawn Код:
if(strcmp("/chairsit", cmdtext, true, 4) == 0)
{
    ApplyAnimation(playerid,"PED","SEAT_down",3,0,1,1,1,1,1);
    return 1;
}
So the problem is, when I do /chairsit, the animation does apply to the player, but the player, instead of getting on the seat, he gets above the seat, like having a gap of air in between him and the chair. Is there any solution for it, something like changing his pos or anything to get him placed on the seat successfully? Or is there any other animation which works best to make him RPly sit down on a chair?
Reply
#2

Unfortunatley no. That's simply how the animation is.
Reply
#3

https://sampwiki.blast.hk/wiki/ApplyAnimation

Check opt2 and opt3.
Reply
#4

My animation had opt2 and opt3, both to 1. Should I change them to zero?
Reply
#5

Use this one instead:
pawn Код:
ApplyAnimation(playerid, "PED", "SEAT_idle", 1.0, 1, 0, 0, 0, 0);
Reply
#6

Thanks Vince, it helped. Reputation.
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)