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.
[03:07 pm]
NudeRaider -- time capsule? you don't talk to 90s kids outside of SEN?
[01:57 pm]
Oh_Man -- SEN is kinda like, a place wher u can be pretty much gauranteed u talking to a millenial, prob born around the early 1990s, its like a time capsule
[01:05 pm]
NudeRaider -- well he is calling himself weirdo...
[03:25 am]
Symmetry -- the best part is that he perfectly summed up SEN's discord
[03:12 am]
Ultraviolet -- WeirdoX4857
WeirdoX4857 shouted: Nigga how you ask is it still going strong when you get a text every 3 miles per hour or something
Joined: Yesterday, 12:08 pm Last Active: Yesterday, 12:14 pm , truly a glorious 6 minutes.
[03:11 am]
Ultraviolet -- :lol:
[2026-9-29. : 2:43 am]
Symmetry -- I'm doing my best, damn it
[2026-9-28. : 4:46 pm]
Ultraviolet -- @:@
@:@ shouted: this community still going strong?
Still going.. strong is debatable though.
[2026-9-28. : 4:13 pm]
WeirdoX4857 -- I can't believe this is really been around since 2003 but it does look classic and old asf still better than talking to kids on discord ranting about skibidi toilet and sexuality or whatever mental illness is going on in their heads
[2026-9-28. : 4:11 pm]
WeirdoX4857 -- Nigga how you ask is it still going strong when you get a text every 3 miles per hour or something
Please log in to shout.


Members Online: Roy, Dem0n