Is triggering player/unit different if I use a wait?

SH4D0WS1N

New Member
Like, let's say I have a trigger that does this (example trigger, not my actual trigger)

Player presses a button

Pick a random unit in owned by triggering player
kill picked unit
wait 15 second
Pick a random unit in owned by triggering player
kill picked unit

If another played clicked the button before the wait 15 seconds ended, would the second pick a random unit in owned by triggering player refer to the triggering player of the first time it was run or the second?

Sorry if my question was jumbled up while I was trying to explain it.
 

Frozenwind

System maker
Triggering unit / player will always be the same. It's a build-in local.

However, thinks like "Attacking Unit" or "Entering Unit" etc. would bug how you described --> in wc3.
I haven't tested it in sc2 yet, but you can simply store them in locals to make sure. It doesn't take more time, as locals in sc2 are available in GUI.
 

Galdiuz

Creator of Photon Command
All stuff under "Trigger response", like attacking unit or entering unit in wc3 was local, and it's the same in sc2. Actually, I think that even things like last created unit is local in sc2 too, not sure about that though.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    The old shoutbox wasn't supported anymore. We updated xenForo, so it had to be replaced.
  • jonas jonas:
    let's see if everyone finds it... the nice thing about the shoutbox was I could check on it even while logged out, but the existence of this one is hidden when you're not logged in
  • Ghan Ghan:
    We can fix that.
  • Ghan Ghan:
    Chat should show on the sidebar when not logged in now.
  • Ghan Ghan:
    (You'll still need to log in to post messages)
  • Ghan Ghan:
    Test!
  • tom_mai78101 tom_mai78101:
    I must be in a test server.
  • tom_mai78101 tom_mai78101:
    Nice, Twitter tweets embedding now works
  • Wizard Wizard:
    Yup.
  • Ghan Ghan:
    Excellent.
  • Ghan Ghan:
    @tom_mai78101 Hello there.
  • Ghan Ghan:
    Tagging works in the chat too.
  • tom_mai78101 tom_mai78101:
    @Ghan Missed it.
  • Wizard Wizard:
    Still fixing things here and there. Added widgets to the portal, will make it match the ones here on the forum index tomorrow.
  • Ghan Ghan:
    The venerable World Editor Tutorials site has been converted to HTTPS at last.
  • jonas jonas:
    cool
  • jonas jonas:
    and I can even edit my messages, nice
  • seph ir oth seph ir oth:
    GENERAL CHIT CHAT, YOU ARE A BOLD ONE
  • Ghan Ghan:
    Hello there
  • The Helper The Helper:
    this new chatbox is great and the forum software update is great too
    +1
  • The Helper The Helper:
    upgrade has fixed forum registration spam problem
  • tom_mai78101 tom_mai78101:
    Something tells me we might be able to customize the chatbox a bit, considering that there's a gap under every message.
  • Wizard Wizard:
    Going to deploy a fix soon, just had to take some time for myself this weekend.
  • Varine Varine:
    Unbelievable. Time for yourself? How dare you!

    Members online

    No members online now.

    Affiliates

    Hive Workshop
    Top