• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

How does apply force actually works?

Status
Not open for further replies.
Hey guys, how does apply force effect actually works?
Here, I used CEffectAnumArea.. then I set the effect to RepulserFieldApplyForce(ApplyForce).. and it resulted in nothing?

I would like to make a knockback by using the trigger "create effect at point from unit", anyone can help me? :\
 
What I mean is I think those forces only apply to the physics objects. When a unit like say... a battlecruiser is destroyed, it doesn't just disappear. It turns into physical pieces that will bounce around the terrain. What I'm saying is I think your "apply to force" thing only applies to those pieces.
 
Apply Force does work on units

the basics is
Effect - Amout : The power of the push (1 = 1 range push instantly, most push spells use some form of persistient, negative amount means pull
Target - Location - Value : Where does the push come from?

Though, from what ive noticed, it also completely disables the target (if done over a duration, a push that lasts 2 seconds will completely disable the target for 2 seconds)
 
It works by getting the unit to move to the target point. As such you need to persistantly apply it for it to keep affect. You may wish to also lock unit turning and stuff so it appears to slide.

Check out Hybrid Reaver Maar's nova (second zeratul mission) and the protoss mothership's warphole. Both these moves use the effect.
 
Its a move command that cancels in a split second, which means it the unit will issue a baseline animation walk if no other animation is playing.

Its the same thing when you push units out of the way.
 
Status
Not open for further replies.
Back
Top