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.
[09:16 am]
NimoStar -- ever wanted to play melee in installation tileset? Now you can https://staredit.net/topic/18929/
[02:29 am]
Symmetry -- TFW you google a problem and find the answer in a post you made yourself
[01:46 am]
Oh_Man -- How can i change my name here to put [TFE] on the end will thr website let me
[06:02 pm]
Zoan -- of course it isn't full understanding. You could ask "is the mechanism by which this counterexample blows up the ONLY mechanism possible for an initial configuration to blow up?"
[05:48 pm]
Zoan -- ppl do it all the time in PDEs
[05:47 pm]
Zoan -- Heinermann
Heinermann shouted: it also didn't solve that problem but hey as long as the investors are pleased
Constructing a counterexample is answering the question: "Is Navier Stokes well posed?" in the negative
[05:44 pm]
NudeRaider -- I only heard about it, didn't any news article, so what did it do then?
[05:43 pm]
Heinermann -- it also didn't solve that problem but hey as long as the investors are pleased
[05:39 pm]
NudeRaider -- I have no idea tbh. All I know no human was ever able to solve it, but there's at least a few that beat portal ;)
[05:32 pm]
Zoan -- Navier Stokes is not that esoteric I thought
Please log in to shout.


Members Online: Ultraviolet