• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

[Trigger] Order unit to submerge

Status
Not open for further replies.
In GUI, there should be an Issue Order With No Target (takes orderstring/takes ordercode). Look up the order string of your submerge ability (should be "submerge"?) and use that.
 
Try this:

  • -------- Change triggering unit to whatever you want --------
  • -------- First function orders unit to submerge --------
  • -------- Second function orders it to go to surface --------
  • Custom script: call IssueImmediateOrder( GetTriggerUnit(), "submerge" )
  • Custom script: call IssueImmediateOrder( GetTriggerUnit(), "unsubmerge" )
 
Hehehe... if its MUI :grin:

Otherwise what you should do is have it in the event where if a unit is ordered to "submerge" and is in a unit group (the unit who your doing the things with would have to be added to a specified group) order unit to "unsubmerge" (use the other half of Child of Bodom's script)
 
Status
Not open for further replies.
Back
Top