Thread Rating:
  • 9 Vote(s) - 2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
waiting for cast
#1
How can I wait adequately until a cast is finished? I try to cast my pet:

Code:
if ( action ) then
      if (ActionList:IsCasting() == false) then
    ActionList:Cast(action.id,0)
       end
end

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
Reply
#2
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.
Reply
#3
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
if ( TableSize(mypet) < 1) then

doesn't seem to see the pet (while I do ;))
Reply
#4
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.
Reply
#5
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 ;)
Reply
 


Forum Jump:


Users browsing this thread: 6 Guest(s)

We help you win the game.

FFXIV Bot and More.

 

Products