• 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.

[General] Can I change speed base of unit with trigger/script?

Status
Not open for further replies.
Level 23
Joined
Apr 16, 2012
Messages
4,041
You can use a trigger which adds the itemability of "Gloves of Haste" to the unit. This increases attackspeed. There is a vJass system that does this for you:

http://www.wc3c.net/showthread.php?t=107940

the question looks like move speed tho, if yes, there are GUI and Jass equivalent functions to do that

If it really is question that regards attack speed, than read above
 
Level 21
Joined
Mar 27, 2012
Messages
3,232
I tried with
  • Unit - Set (Triggering unit) movement speed to ((Current movement speed of (Triggering unit)) + 300.00)
but since it does not work I want to do it this way -
  • Custom script: call SetUnitSpeedBase(TriggeringUnit, 600)
but I guess it's not written correctly

It should work, but note that the usual max speed is 400(in gameplay constants) if you change that, then the highest is 522.
 
Status
Not open for further replies.
Top