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

[Trigger] Order unit to submerge

Status
Not open for further replies.
Level 7
Joined
Jul 20, 2008
Messages
377
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.
 
Level 16
Joined
Jul 21, 2008
Messages
1,121
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" )
 
Level 5
Joined
Oct 17, 2006
Messages
151
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.
Top