SA-MP Forums Archive
ApplyAnimation question - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: ApplyAnimation question (/showthread.php?tid=128817)



ApplyAnimation question - ziomal432 - 19.02.2010

What does the opt1 argument changes?
What is the difference between LockX and LockY?

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


Re: ApplyAnimation question - [HiC]TheKiller - 19.02.2010

The X = X co-ordonate
The Y = Y co-ordonate




Re: ApplyAnimation question - Correlli - 19.02.2010

It's explained on that page:
Quote:
opt2 This can be named LockX. This basically stores the player position when they perform an animation that requires them to move. When the animation is done, it puts them back to their original position before the animation started, if set to 0. Opposite effect if it's set to 1.
opt3 This can be named LockY. This basically stores the player position when they perform an animation that requires them to move. When the animation is done, it puts them back to their original position before the animation started, if set to 0. Opposite effect if it's set to 1.



Re: ApplyAnimation question - ziomal432 - 19.02.2010

Yes, yes, but I don't get it. The change by LockX is moving camera with player, when in e.g. drunk animation, but in LockY camera is still on the beginning place. Sorry, I don't know how to explain .