Units that enter a building, and shoot out of it?

Status
Not open for further replies.
Level 9
Joined
Apr 14, 2007
Messages
437
Alright, in my map that I'm working on, USA in Crisis (Last know as WW3) I'm trying to make an easy trigger, which isn't easy for me at all. It's a trigger that gives edited "phoenix fires" with the same stats as the unit that's going to enter the structure, and it makes it seem like they're shooting out of it. Also, when a unit leaves the structure, it removes only one "phoenix fire" from it, instead of all of it. Here's some of the GUI.
  • enter one
    • Events
      • Unit - A unit Is loaded into a transport
    • Conditions
      • (Unit-type of (Loading unit)) Equal to Marine Corp. Special Ops
    • Actions
      • Unit - Add Captured Building Machine Gun Mount to (Transporting unit)
  • leave one
    • Events
      • Unit - A unit Is issued an order with no target
    • Conditions
      • (Unit-type of (Ordered unit)) Equal to -
      • (Unit-type of (Target unit of ability being cast)) Equal to Marine Corp. Special Ops
    • Actions
      • Unit - Remove Captured Building Machine Gun Mount from (Triggering unit)
      • Game - Display to (All players) the text: You made a unit lea...
 
Level 9
Joined
Apr 14, 2007
Messages
437
Okay, basically, when you enter a unit into a garrisonable structure, it adds the attack of the entering unit to the structure, and when the unit leaves, it removes the attack. Or it could be something that adds phoenix fire spells that have the same damage as the unit that enteres the building. Hope that made it easier to understand.
 
Status
Not open for further replies.
Top