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:28 am]
Ultraviolet -- sounds like Bound & Defend
[07:43 pm]
Symmetry -- If you take the reins you damn well be ready to ride
[2026-5-23. : 2:46 pm]
NudeRaider -- you wish
[2026-5-23. : 12:43 am]
IskatuMesk -- Ah, so Reindeer Breeding 3: BDSM edition.
[2026-5-22. : 12:45 am]
Moose -- tbh
[2026-5-20. : 8:27 pm]
Symmetry -- It's a bound map where you cross obstacles to earn units to defend your base
[2026-5-20. : 8:16 pm]
Symmetry -- No, the world isn't ready for that
[2026-5-20. : 5:11 pm]
Zoan -- Reindeer Breeding 3?
[2026-5-19. : 7:20 pm]
Symmetry -- I've started *another* map too. Feeling nostalgic.
[2026-5-19. : 7:17 pm]
Symmetry -- But people need constant access to my creations!
Please log in to shout.


Members Online: Dem0n, O)FaRTy1billion[MM], Sie_Sayoka