Jump to content
  • 0

[SOLVED] How to delay attack properly?


eduardoxmenezes

Question


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.01
  • Content Count:  35
  • Reputation:   5
  • Joined:  04/10/20
  • Last Seen:  

Hello,

I'm wondering if there's correct way to implement continuous attack by homunculus. My case is that when slaveclone successfully summon homunculus, it does not run the hoai. So, I attach forcefully the order for homun to attack (unit_attack), inside the function in which any unit attacks (which is unit_attack). The result is that the homun attacks crazily fast. In reverse, when I use 0 instead of 1 of unit_attack parameter, it attacks super slowly. 

Is there any other way to embed nested unit_attack with moderate frequency of function call, so it attacks relatively-normal?

Many thanks!

Edited by eduardoxmenezes
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.01
  • Content Count:  35
  • Reputation:   5
  • Joined:  04/10/20
  • Last Seen:  

I guess the idea to nest homun's attack inside pc's attack is a ridiculous idea. So, I step up to where the order to attack for pc is placed, then put also the order for homun.

The delay comes from how the attack is timed through timer. So it's also a bad idea to generalize the timer by this homun clone's timer when being changed. Or maybe I am too lazy to make another timer.

Edited by eduardoxmenezes
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...