Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: How to spawn a unit where another is?
How to spawn a unit where another is?
Dec 7 2009, 12:22 am
By: eo-pkzerg94  

Dec 7 2009, 12:22 am eo-pkzerg94 Post #1



Ok, first off, i don't really know what this is called so I couldn't really search (it tried, though)

So what i mean by this is.. say for example my marine is somewhere in the map. I bring a ling to a beacon then it teleports to marine(or somewhere near). The ling must always teleport to the marine, wherever it is. For example, in certain mass games, there is a unit dropper. It drops units you pick to the location the unit dropper is at.

Thanks in advance! :)



None.

Dec 7 2009, 12:32 am Norm Post #2



This is actually pretty simple. You are going to want to set up a trigger like this:

C:
Current player brings 1 ling to "teleport beacon"
Current player commands at least 1 marine

A:
Center location named "Location 20" on marine owned by current player at "Anywhere"
Move all lings at "teleport beacon" to "location 20"
(optional center view or display text)
Preserve trigger.



None.

Dec 7 2009, 12:37 am JaFF Post #3



OK, in SC mapping we use 'locations' - virtual boxes you cannot see in game. You can detect units in those boxes, perform some actions on those units and move these boxes around, too. So what you need is to create one location around the beacon (call it "B") and one small location anywhere on the map (call it "M"). Then create the trigger:

CONDITIONS:
-a zergling is brought to location B

ACTIONS:
-move (center) location A to the marine
-move zergling at location B to location A
-preserve trigger (this action makes the trigger re-useable, so this trigger will work every time the condition is met, not just once)

NOTE: The language I used for the trigger is not how the actual conditions and actions will appear in the editor. I want you to figure them out for yourself. Also please check out the FAQ pinned topic in the Map Making Assistance forum.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[2026-4-18. : 3:57 am]
NudeRaider -- https://staredit.net/381600/ You have 5 minutes, then you can only edit your posts.
[2026-4-17. : 4:05 pm]
NudeRaider -- DarkenedFantasies
DarkenedFantasies shouted: you eat lots of beans
:lol:
[2026-4-17. : 11:30 am]
NudeRaider -- I would like 3000 minerals, please
[2026-4-16. : 7:32 pm]
Zoan -- I got $2000 bonus. I would like 2000 minerals, please
[2026-4-16. : 4:15 am]
DarkenedFantasies -- you eat lots of beans
[2026-4-16. : 3:46 am]
IskatuMesk -- how do i get gas
[2026-4-15. : 11:43 pm]
Moose -- you don't
[2026-4-15. : 10:06 pm]
Zoan -- how do i get minerals
[2026-4-14. : 11:45 pm]
ClansAreForGays -- Anyone wanna played Skewed StarCraft?
[2026-4-14. : 12:07 am]
Vrael -- NudeRaider
NudeRaider shouted: Vrael ranting still is though
you're a gentleman and a scholar, thank you
Please log in to shout.


Members Online: anoeth47