Slide had pause my unit

asipo

New Member
Reaction score
15
Hi
I want to make my unit sliding on ice
I make every 0.04 seconds, the unit will move in front of it
This work nicely and have no problem at all.

My problem rite now is the unit have an ability Thunder Clap
When I try to cast it, the unit will not cast it.

This is maybe because of the rapid movement (the sliding) of the unit
cause my unit unable to cast it

I have try to disable the trigger when the unit is casting an ability
But it seems not to smooth enough like I want it

Is there any solution for this?
 
Let me see ur slide trigger. When u use set unit location it will interupt unit actions so you have to use setunitX and setunitY (jass)
 
Trigger:
  • Untitled Trigger 001
    • Events
      • Time - Every 0.03 seconds of game time
    • Conditions
    • Actions
      • Unit - Move Gryphon Rider 0029 <gen> instantly to ((Position of Gryphon Rider 0029 <gen>) offset by 10.00 towards (Facing of Gryphon Rider 0029 <gen>) degrees), facing ((Facing of Gryphon Rider 0029 <gen>) + 1.00) degrees


Well, actually its not sliding on ice
But im making sliding + control with keyboard (i already done this)
The given trigger is the sliding part (the crucial part)
The testing unit is Gryphon Rider 0029 <gen>

I try to make the unit have 2 ability
Thunder clap and Flame breath

Unable to cast the flame breath even im already click the target
because of the sliding i guess

did i need to post my map?

p/s:
note that im not using move instantly on X and Y.
The trigger i use above still works and i think better that move instantly on X and Y...i guess
(I still dont consider the leak part)
 
the action "unit - move unit to position" does remove all given order of the unit. you can use jass to set the units X/Y to a different point however this will enable your unit to move/attack/etc just like an ordinery unit.

the jass lines would look something similar to this:
Trigger:
  • Custom script: call SetUnitX( GetEnumUnit(), GetLocationX(udg_TempPoint))
    • Custom script: call SetUnitY( GetEnumUnit(), GetLocationY(udg_TempPoint))
 
heres how, make a custom script and do call SetUnitX(Unit, GetUnitX(Unit)+10*Cos(GetUnitFacing(Unit)*bj_DEGTORAD)) and then

call SetUnitY(Unit, GetUnitY(Unit)+10*Sin(GetUnitFacing(Unit)*bj_DEGTORAD))
 
Problem solve and works...Thanks to accname & Infinitegde
Looks like i cant run from jass...
And making unit movement based on X and Y is a math
(i hate that since my testing map involve unit acceleration)

accname help me 2 times in a day
I guess you must have involve and get alot of exp in making sliding unit
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    News portal has been retired. Main page of site goes to Headline News forum now
  • The Helper The Helper:
    I am working on getting access to the old news portal under a different URL for those that would rather use that for news before we get a different news view.
  • Ghan Ghan:
    Easily done
    +1
  • The Helper The Helper:
    https://www.thehelper.net/pages/news/ is a link to the old news portal - i will integrate it into the interface somewhere when i figure it out
  • Ghan Ghan:
    Need to try something
  • Ghan Ghan:
    Hopefully this won't cause problems.
  • Ghan Ghan:
    Hmm
  • Ghan Ghan:
    I have converted the Headline News forum to an Article type forum. It will now show the top 20 threads with more detail of each thread.
  • Ghan Ghan:
    See how we like that.
  • The Helper The Helper:
    I do not see a way to go past the 1st page of posts on the forum though
  • The Helper The Helper:
    It is OK though for the main page to open up on the forum in the view it was before. As long as the portal has its own URL so it can be viewed that way I do want to try it as a regular forum view for a while
  • Ghan Ghan:
    Yeah I'm not sure what the deal is with the pagination.
  • Ghan Ghan:
    It SHOULD be there so I think it might just be an artifact of having an older style.
  • Ghan Ghan:
    I switched it to a "Standard" article forum. This will show the thread list like normal, but the threads themselves will have the first post set up above the rest of the "comments"
  • The Helper The Helper:
    I don't really get that article forum but I think it is because I have never really seen it used on a multi post thread
  • Ghan Ghan:
    RpNation makes more use of it right now as an example: https://www.rpnation.com/news/
  • The Helper The Helper:
  • The Helper The Helper:
    What do you think Tom?
  • tom_mai78101 tom_mai78101:
    I will have to get used to this.
  • tom_mai78101 tom_mai78101:
    The latest news feed looks good

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top