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



Animation over animation - Sergei - 20.07.2009

Hello.

So I have made that when talk in local chat it applys animation with length depends on number of characters and it's stopped with SetTimerEx.
The problem is if I am in some other and I want to talk, that other animation is overwritten by chat anim. That's pretty annoying and I would like that when I'm in other animation chat animation isn't applied.

I have been thinking about this sometime, but I haven't found any resonable solution.

Snyone of you have any idea?


Re: Animation over animation - MadeMan - 20.07.2009

Make a variable and set it to 1 when you are doing another anim, and then in the chat anim first check if that variable is 1, then don't apply chat animation.


Re: Animation over animation - Sergei - 20.07.2009

I'm currently using modified vactions filterscript for all the animations. There is already variable 'gPlayerUsingLoopingAnim' which tells you if you are in animation or no.

So the question is, is it possible to use that variable from filterscript in gamemode, or I need to integrate all filterscript into gamemode?


Re: Animation over animation - MadeMan - 20.07.2009

You can use CallRemoteFunction to call a function in GM from the FS to set a variable in GM, but variables in FS don't work in GM.