redditing Posted October 18, 2020 Share Posted October 18, 2020 So the problem is that there is a function called "animate" https://wiki.multitheftauto.com/wiki/Animate and with this function we can animate the GUI etc ... but there is one problem, because I would like to stop this function at some point and stop animating at some point, there is a way to do that ? Link to comment
Scripting Moderators xLive Posted October 18, 2020 Scripting Moderators Share Posted October 18, 2020 (edited) There is already a function to stop it if you tried to read the code it's destroyAnimation Edited October 18, 2020 by xLive Link to comment
redditing Posted October 18, 2020 Author Share Posted October 18, 2020 There is no such function what are you talking about? Link to comment
redditing Posted October 20, 2020 Author Share Posted October 20, 2020 20 hours ago, Gordon_G said: There actually is : Omg i didnt see it, thank you Link to comment
Moderators IIYAMA Posted October 20, 2020 Moderators Share Posted October 20, 2020 4 hours ago, redditing said: Omg i didnt see it, thank you I would recommend to modify that function(+code) if I was you, since stopping an animation based on table indexes doesn't really work well, when array mutate functions + collapse effect are used: table.remove When using it for 1 animation at the same time, it will work fine. But when destroying multiple animations, it might causes some unexpected results. 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now