SA-MP Forums Archive
Object 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: Object Animation (/showthread.php?tid=333567)



Object Animation - Cronic - 11.04.2012

How do i add a animation to a object?

For example i will press "F" or "Enter" by a Keypad and then my hand will reach it and the door will open?


Re: Object Animation - Kindred - 11.04.2012

Use OnPlayerKeyStateChange to check the position of the player, then if their near it use SetPlayerFacing angle and/or SetPlayerPos to set their position closer, and then set the animation you wish for them to use.


Re: Object Animation - [DOG]irinel1996 - 11.04.2012

Use OnPlayerKeyStateChage.

EDIT: too late! xD


Re: Object Animation - Cronic - 11.04.2012

Thanks!