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

Enabling movement speed

Status
Not open for further replies.
Level 2
Joined
Sep 11, 2016
Messages
11
Hello!

I want to add movement speed to a unit that initially starts with 0 when there are units in the cargo (basically piloting vehicles).

The issue is if the unit initially starts with 0 movement it can't have any movement added through abilities or triggers (I have already tried using the Item Movespeed as well). I'm wondering if anyone might know an elegant way of accomplishing this?

Here is a quick trigger I have set:

  • Human Catapult Load
    • Events
      • Game - CargoEvent becomes Equal to 1.00
    • Conditions
      • (Unit-type of CargoTransportUnit[UDex]) Equal to Catapult
    • Actions
      • Unit - Set CargoTransportUnit[UDex] movement speed to ((Current movement speed of CargoTransportUnit[UDex]) + 60.00)
It works fine if the catapult is given anything above 0 as its base movement speed - I have already tested this, but I want the catapults to be unusable when not piloted.

Please provide any assistance you can! Thank you!
 
Oh! Such an easy solution and I totally didn't think about it.

Thanks so much sir! I just tested it out and it's working just fine now ;)

This thread can be closed.
 
Status
Not open for further replies.
Back
Top