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.
[03:02 am]
Ultraviolet -- I'm gonna send inf to have sex with their moms
[03:02 am]
Ultraviolet -- fuck those motherfuckers
[11:02 pm]
NudeRaider -- PSA: ASUS apparently decided their RMA department needs to "become profitable" and for a while now outright tries to scam customers. They were called out on it a year ago, promised to change, but didn't. https://www.youtube.com/watch?v=7pMrssIrKcY so my recommendation: Stop buying ASUS, and if you already have and need something RMA'd, make sure to not let them bully you into paying.
[03:08 pm]
Oh_Man -- example of wat u mean?
[2024-5-15. : 5:59 am]
NudeRaider -- *is
[2024-5-15. : 5:17 am]
NudeRaider -- despite all its flaws the sound design its fantastic
[2024-5-14. : 10:29 pm]
Oh_Man -- homeworld 3 = massive disappointment
[2024-5-14. : 10:05 am]
Moose -- ya
[2024-5-14. : 5:23 am]
zsnakezz -- yes
[2024-5-12. : 8:51 pm]
l)ark_ssj9kevin -- Are you excited for Homeworld 3?
Please log in to shout.


Members Online: 7miae2422eg9, 4jordane6685wa4, 1alicee1723fB4, 6jordanc89100wp5, 1miae81100tN5