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

Duplicating / Instant teleport

Status
Not open for further replies.
Level 5
Joined
Jan 5, 2019
Messages
108
Hey i am trying to make a map where i duplicate the units player 12 creates, and gets instant teleported to 6 different areas when entering a region, if anyone can help me it would be really appreciated :)
 
Level 4
Joined
Jan 9, 2019
Messages
70
Hmm, depending the duplicate mode your use, if you want make an duplicate go in the triggers and adjust them to make something like this:
Events:
Unit enters region
Conditions
Owner of Entring unit equal to Player 12
Actions
Create a unit for player 12 of unit type of Entring unit at (where you want to put the new unit: for example: position of entring unit) facing Facing of entring unit.

Please note if you want make some changes to the new unit use the last created unit.

If the bug stand pease give me the map (if you are not playing in versions over the patch 1.27) and i will try to fix it
Have a nice day...
 
Level 5
Joined
Jan 5, 2019
Messages
108
Hmm, depending the duplicate mode your use, if you want make an duplicate go in the triggers and adjust them to make something like this:
Events:
Unit enters region
Conditions
Owner of Entring unit equal to Player 12
Actions
Create a unit for player 12 of unit type of Entring unit at (where you want to put the new unit: for example: position of entring unit) facing Facing of entring unit.

Please note if you want make some changes to the new unit use the last created unit.

If the bug stand pease give me the map (if you are not playing in versions over the patch 1.27) and i will try to fix it
Have a nice day...

Thanks for the answer, i kind of fixed it, but maybe you can help me if its not to complicated. i need all the units to spawn 4 different corners when they enter the Region so they won't all stand in the central spot. right now everytime (Player 12) trains a unit, 12 units will spawn/ gets duplicated. So it would be very awesome if the Hero kind of gets surrounded if you get what i mean :)
 

Attachments

  • Untitled.png
    Untitled.png
    51.1 KB · Views: 26
Level 4
Joined
Jan 9, 2019
Messages
70
I can not grasp the idea, do you want the hero to be surrounded by what?
I do not speak English perfectly so I do not understand you very well
 
Level 5
Joined
Jan 5, 2019
Messages
108
I can not grasp the idea, do you want the hero to be surrounded by what?
I do not speak English perfectly so I do not understand you very well

I want the hero to be surrounded by Units = Monsters. instead of the monsters spawn in the middle of the region, i want them to spawn in each corner
 
Level 4
Joined
Jan 9, 2019
Messages
70
Ohh, nice idea :cidea:, so, you want to when player 12 creates a unit it moves instantly to a position of the map. Do this:

First you must have the hero
and a unit group that holds the last created unit of player 12 (the unit group 1)


Events:
A Unit enters Playable Map area
Conditions:
Owner of Entring unit equal to Player 12

Actions:
Add entring unit to (the unit group 1)

Move entring unit to (the corner you want)

Copy three times this actions:
Create a unit facing angle: Create 1 (unit type of last created unit) for player 12 at (another corner of the map) facing position of (the hero you want)

Add last created unit to (the unit group 1)

Pick every unit in (unit group 1) and order piked unit to attack (may change) the hero.
 
Last edited:
Level 5
Joined
Jan 5, 2019
Messages
108
Thanks it worked :) i made it like this

  • Duplicate
    • Events
      • Unit - A unit enters Instant TP 2 <gen>
    • Conditions
    • Actions
      • Unit - Create 3 (Unit-type of (Triggering unit)) for Player 12 (Brown) at (Center of Duplicate test <gen>) facing Default building facing degrees
      • Unit Group - Pick every unit in (Units in Cornor 1 <gen> owned by Player 12 (Brown)) and do (Unit Group - Order (Last created unit group) to Attack-Move To (Center of Good Tp Side <gen>))
      • Unit - Create 3 (Unit-type of (Triggering unit)) for Player 12 (Brown) at (Center of Duplicate test <gen>) facing Default building facing degrees
      • Unit Group - Pick every unit in (Units in Cornor 2 <gen> owned by Player 12 (Brown)) and do (Unit Group - Order (Last created unit group) to Attack-Move To (Center of Good Tp Side <gen>))
      • Unit - Create 3 (Unit-type of (Triggering unit)) for Player 12 (Brown) at (Center of Duplicate test <gen>) facing Default building facing degrees
      • Unit Group - Pick every unit in (Units in Cornor 3 <gen> owned by Player 12 (Brown)) and do (Unit Group - Order (Last created unit group) to Attack-Move To (Center of Good Tp Side <gen>))
      • Unit - Create 3 (Unit-type of (Triggering unit)) for Player 12 (Brown) at (Center of Duplicate test <gen>) facing Default building facing degrees
      • Unit Group - Pick every unit in (Units in Cornor 4 <gen> owned by Player 12 (Brown)) and do (Unit Group - Order (Last created unit group) to Attack-Move To (Center of Good Tp Side <gen>))
  • [Trigger/]
 
Level 4
Joined
Jan 9, 2019
Messages
70
Nice work friend, good luck in your map! and was a pleasure help you
 
Last edited:
Status
Not open for further replies.
Top