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.
[12:52 pm]
Vrael -- if you're gonna link that shit at least link some quality shit: https://www.youtube.com/watch?v=uUV3KvnvT-w
[11:17 am]
Zycorax -- :wob:
[2024-4-27. : 9:38 pm]
NudeRaider -- Ultraviolet
Ultraviolet shouted: NudeRaider sing it brother
trust me, you don't wanna hear that. I defer that to the pros.
[2024-4-27. : 7:56 pm]
Ultraviolet -- NudeRaider
NudeRaider shouted: "War nie wirklich weg" 🎵
sing it brother
[2024-4-27. : 6:24 pm]
NudeRaider -- "War nie wirklich weg" 🎵
[2024-4-27. : 3:33 pm]
O)FaRTy1billion[MM] -- o sen is back
[2024-4-27. : 1:53 am]
Ultraviolet -- :lol:
[2024-4-26. : 6:51 pm]
Vrael -- It is, and I could definitely use a company with a commitment to flexibility, quality, and customer satisfaction to provide effective solutions to dampness and humidity in my urban environment.
[2024-4-26. : 6:50 pm]
NudeRaider -- Vrael
Vrael shouted: Idk, I was looking more for a dehumidifer company which maybe stands out as a beacon of relief amidst damp and unpredictable climates of bustling metropolises. Not sure Amazon qualifies
sounds like moisture control is often a pressing concern in your city
[2024-4-26. : 6:50 pm]
Vrael -- Maybe here on the StarEdit Network I could look through the Forums for some Introductions to people who care about the Topics of Dehumidifiers and Carpet Cleaning?
Please log in to shout.


Members Online: Oh_Man