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.
[06:14 am]
NimoStar -- But even if she wasn't, the whole NSDAP stormtrooper wing was gay-led back then
[06:13 am]
NimoStar -- rainbow mafia? That gal is like against gay rights (even if she is a lesbian) for example adoption
[2026-10-03. : 7:42 pm]
Symmetry -- Everybody needs somebody to hate, amirite?
[2026-10-03. : 6:57 pm]
Ultraviolet -- even the rainbow mafia is getting accused of being far right now :lol:
[2026-10-03. : 3:05 am]
Oh_Man -- wtf is happening in germany now... https://youtu.be/_oR2SgGvpzo
[2026-10-02. : 5:07 pm]
Symmetry -- no u
[2026-10-02. : 12:54 am]
lil-Inferno -- u
[2026-10-01. : 2:28 pm]
NudeRaider -- Oh_Man
Oh_Man shouted: NudeRaider non-sequitur harder daddy
no shit sherlock. I wanted you explain what you mean with time capsule (hence the question mark!), because obviously what follows makes no sense. For someone so intelligent you can be quite daft at times...
[2026-10-01. : 4:00 am]
Oh_Man -- NudeRaider
NudeRaider shouted: time capsule? you don't talk to 90s kids outside of SEN?
non-sequitur harder daddy
[2026-10-01. : 2:56 am]
Symmetry -- Talk to people? Like in real life?
Please log in to shout.


Members Online: lifebot