• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

Skill problem with a moving unit

Status
Not open for further replies.
Level 9
Joined
Apr 7, 2010
Messages
480
i have a trigger that is something like this

Event - Every 0.03 seconds of game time

Action - Move Unit instantly to Position

so that my unit is actually moving, but the problem is with this trigger i can't cast spells. Does someone have an idea so that my unit can cast spell while moving?
 

Vunjo

Hosted Project: SC
Level 14
Joined
Jul 1, 2010
Messages
1,340
Move instantly will TELEPORT the unit to position, if you want a unit to move, with it's move speed and animation, then it can cast spells. But, if the event is 0.03 seconds, then it won't cast spell because there's no time to cast it, unit will be ordered to move every time...
 
Level 9
Joined
Apr 7, 2010
Messages
480
But is there any other way for the unit to still cast the spell while moving instantly the unit to position?
 
Level 9
Joined
Apr 7, 2010
Messages
480
okay. I'll give you the whole detail.

the game-play is something like ACE ONLINE.
I added the trigger(first post) making the unit to always move forward.

I added a skill like Elune's arrow(with some changes) from mirana(dota)
but since i added the trigger from the first post, i can't use any of the skill.
so i'm finding a way for my unit to still cast spell while moving.
 
Level 20
Joined
Jul 6, 2009
Messages
1,885
There is a way.
Instead of using Set Unit Position,use custom scripts:
  • Set Point = Your point
  • Set Unit = Your unit
  • Custom script: call SetUnitX(udg_Unit,GetLocationX(udg_Point))
  • Custom script: call SetUnitY(udg_Unit,GetLocationY(udg_Point))
  • Custom script: call RemoveLocation(udg_Point)
This doesn't interrupt orders.
 
Status
Not open for further replies.
Top