SA-MP Forums Archive
Smoking while walking animation? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Smoking while walking animation? (/showthread.php?tid=648043)



Smoking while walking animation? - alanhutch - 14.01.2018

Hi all,
I saw in some server that when you make a hit from the cigarette while you are walking/running, you can continue to walk/run while you are smoking your cigarette without any interruption.
I searched the web but I didn't found nothing.

Can someone help me? Thanks a lot.


Re: Smoking while walking animation? - Daveosss - 14.01.2018

SetPlayerSpecialAction(playerid, SPECIAL_ACTION_SMOKE_CIGGY);


Re: Smoking while walking animation? - alanhutch - 19.01.2018

No, sorry if I didn't explained correctly.
I'm using a system with the attached object (with Custom Models) and when you press Y he take a hit, I can't use the Special Action.


Re: Smoking while walking animation? - alanhutch - 20.01.2018

bump


Re: Smoking while walking animation? - RogueDrifter - 20.01.2018

freeze the player to prevent hits while smoking if that's what you're asking for.


Re: Smoking while walking animation? - Sew_Sumi - 20.01.2018

Quote:
Originally Posted by alanhutch
Посмотреть сообщение
No, sorry if I didn't explained correctly.
I'm using a system with the attached object (with Custom Models) and when you press Y he take a hit, I can't use the Special Action.
Try using an animation... Pretty sure you can drink and smoke whilst walking.

SpecialAction brings up the cigar/bottle, but I think the animation does the rest.