Staredit Network > Forums > SC2 Assistance > Topic: [SOLVED]Giving unit to triggering player
[SOLVED]Giving unit to triggering player
This topic is locked. You can no longer write replies here.
May 17 2010, 6:56 pm
By: LooKe  

May 17 2010, 6:56 pm LooKe Post #1



I'm trying to figure out how to give a unit, to the player who sets the trigger off.
So this is what I have
Code
   Events
       Unit - Any Unit Enters Pick team 1-1
   Local Variables
   Conditions
       (Owner of (Triggering unit)) != 0
   Actions
       Unit - Change ownership of (Closest unit to Team 1-1 in (Any units in Pick team 1-1 owned by player Any Player matching No Unit Filter, with at most Any Amount)) to player 1 and Change Color
       Region - Move Pick team 1-1 to Useless stuff here
       Unit - Kill (Triggering unit)

where it changes ownership to player 1 and change color, instead of player 1 i want the triggering player.\
Also is there an easier way to do the above trigger that I didn't find?

Post has been edited 1 time(s), last time on May 17 2010, 7:22 pm by JB4times4.



None.

May 17 2010, 7:10 pm 13Stallion Post #2



Change "player 1" to "Triggering Player", Its under function.



None.

May 17 2010, 7:17 pm LooKe Post #3



Wow alright, nice to know that it actually is that easy. Thanks!!



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[01:36 am]
Moose -- Thinking on it more, I vaguely remember it being annoying because it kept repeating some short loop of the Super Mario World theme LMAO
[12:57 am]
Oh_Man -- I thought i remembered an old mario map but i searched super mario starcraft on utube and i couldnt see anything cept UMS
[11:40 pm]
lil-Inferno -- Blizzard forgot about SC so it's okay
[07:04 pm]
Symmetry -- malware maps for everyone
[07:03 pm]
Moose -- probs lmao
[06:57 pm]
Symmetry -- (and will be patched)
[06:56 pm]
Symmetry -- The old stuff would've gotten patched no? this is current
[06:55 pm]
Moose -- Just made? I thought we had that years ago
[05:23 pm]
Oh_Man -- so someone just made super mario in brood war https://www.youtube.com/watch?v=DmrUcKU65oQ
[2026-8-06. : 2:41 am]
Oh_Man -- i used to play TF2 competitive in that clan, and also was PR manager (ie: i wrote all the website posts)
Please log in to shout.


Members Online: MarineElite