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.
[10:41 am]
ManCubuS -- Seems like something's broken regarding the site then. Sadge...
[07:36 am]
Oh_Man -- have i ever told u guys my SC2 pro-gamer story
[11:30 pm]
Ultraviolet -- That's strange, it looks like you targeted the base image file (sometimes people make the mistake of just using the imgur page link which doesn't work for embedding) but it still didn't work it sounds like.
[2026-7-26. : 3:34 pm]
ManCubuS -- Used : " [img=https://i.imgur.com/gpOjTuD.jpeg] "
[2026-7-26. : 3:28 pm]
ManCubuS -- Even tried with imgur, doesn't attach.
[2026-7-26. : 3:14 pm]
ManCubuS -- I should try a workaround, thanks! Sadly imgur is blocked in my country for some unknown reason.
[2026-7-26. : 3:05 pm]
NudeRaider -- I think SEN has trouble with https or hotlinking is forbidden. It certainly is nothing about the size, it just fails to get any size. You can get it working if you use imgur and include the actual image link for the img tag. Like this: [img=https://i.imgur.com/ddYqXZa.jpeg]
[2026-7-26. : 11:15 am]
ManCubuS -- Hey fellas! Anyone knows why when I try to upload an image it says "failed to get image size"? I even tried making it so small. Imgur isn't working here and I tried postimg no luck.
[2026-7-23. : 6:40 am]
Oh_Man -- true
[2026-7-23. : 3:16 am]
RIVE -- Still annoyed there was never a trigger to stop or pause wavs.
Please log in to shout.


Members Online: Zycorax, Dem0n