waiting for cast - Printable Version +- MMOMinion (https://www.mmominion.com) +-- Forum: FFXIVMinion (https://www.mmominion.com/forumdisplay.php?fid=87) +--- Forum: [DOWNLOADS] Addons, Lua Modules, Navigation Meshes.. (https://www.mmominion.com/forumdisplay.php?fid=90) +---- Forum: I Need Help with LUA coding! (https://www.mmominion.com/forumdisplay.php?fid=104) +---- Thread: waiting for cast (/showthread.php?tid=4605) |
waiting for cast - TauTau - 10-29-2013 How can I wait adequately until a cast is finished? I try to cast my pet: Code: if ( action ) then but it still casts twice or thrice, sinc eit doesn't see that the pet is already there it seems. Is there some kind of "wait" command? Couldn't find it in the LUA reference RE: waiting for cast - ferenz - 10-29-2013 You can try playing with action.isready but it appears that there are some internal timing inconsistencies with these functions that we're still trying to work out. I agree that it's annoying and getting rid of the spam is one of our priorities. You could probably use timers to get rid of it but that's rather barbaric and we'd prefer to use the client functionality instead of sticking timers everywhere in the code. RE: waiting for cast - TauTau - 10-29-2013 the problem here I think is, that I rely on IsCasting(), and the actual cast really is over, but the check I do before Code: local mypet = Player.pet doesn't seem to see the pet (while I do ;)) RE: waiting for cast - ferenz - 10-29-2013 Yeah, that's what I mean, there are some inconsistencies that we may have to dig deeper into in terms of skill latency etc. It could be due to the event system that ffxiv uses which seems to add some noticeable latency into most game actions. RE: waiting for cast - TauTau - 10-29-2013 ok... I think I can live with that, it's not that annoying ;) However I found something else, how do I check if I'm mounted? Just noted that it tries to cast while mounted... I'd expect a Player.IsMounted() but the docs don't show it ;) |