Staredit Network > Forums > SC2 Assistance > Topic: Unit Clicked Trigger
Unit Clicked Trigger
Aug 6 2010, 10:53 pm
By: Salvador  

Aug 6 2010, 10:53 pm Salvador Post #1



So, I thought I'd make something simple to dip my toes into SC2 modding, so I'm making a game called "Whack-A-Roach." The premise is simple - click on a roach and it pops.

The problem is, my Unit Clicked trigger doesn't seem to be working. I have a screenshot of my trigger attached.

I will note that my Unit Selected trigger does work, but that's not ideal as the players could drag a box for unit selection, making the game much too easy!

Attachments:
trigger example.jpg
Hits: 8 Size: 22.45kb



None.

Aug 6 2010, 11:03 pm Devourer Post #2

Hello

Triggering Unit is the unit that runs the trigger, therefore triggering player might work. Unsure about triggering unit, but it apparently doesn't work.
Do something like this:
pick each unit in unit-group ( selected units by player 1)
-> kill Picked Unit



Please report errors in the Staredit.Network forum.

Aug 6 2010, 11:34 pm Salvador Post #3



I don't think that's the problem, though. The problem seems to be that it never registers clicking on a unit. I have tried simply spawning a text string (Text Tag - Create Text Tag) when I click a unit too, but it doesn't do that either.



None.

Aug 6 2010, 11:59 pm Devourer Post #4

Hello

Ya, I just tested it. This event is not working at all, apparently.

Use the event "Unit is selected", this should work and it does not repeat all the time. It only runs once when you selected the / a unit.



Please report errors in the Staredit.Network forum.

Aug 7 2010, 12:45 am Temp Post #5



You need to disable the cannot be clicked flag in the data editor on the unit.



None.

Aug 7 2010, 12:52 am Salvador Post #6



I thought it might be something like that! Thanks, I'll try that directly, then edit this post with my results.

Edit: Excellent, it worked! 1000 cool points to Temp!

Post has been edited 1 time(s), last time on Aug 7 2010, 1:04 am by Salvador.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[06:47 am]
NudeRaider -- lil-Inferno
lil-Inferno shouted: nah
strong
[05:41 am]
Ultraviolet -- 🤔 so inf is in you?
[04:57 am]
O)FaRTy1billion[MM] -- my name is mud
[04:35 am]
Ultraviolet -- mud, meet my friend, the stick
[10:07 pm]
lil-Inferno -- nah
[08:36 pm]
Ultraviolet -- Inf, we've got a job for you. ASUS has been very naughty and we need our lil guy to go do their mom's to teach them if they fuck around, they gon' find out
[2024-5-16. : 5:25 pm]
NudeRaider -- there he is, right on time! Go UV! :D
[2024-5-16. : 5:24 pm]
lil-Inferno -- poopoo
[2024-5-16. : 5:14 pm]
UndeadStar -- I wonder if that's what happened to me. A returned product (screen) was "officially lost" for a while before being found and refunded. Maybe it would have remained "lost" if I didn't communicate?
[2024-5-16. : 3:36 pm]
NudeRaider -- :lol:
Please log in to shout.


Members Online: Roy, 9avac963rb2, 9avac542ea4, 1madisone793ec5