[skip all navigation]

Structures Vs. Men, Determining the difference - in triggers

Creator: playpong
Time: Aug 22 2010, 9:08 pm

Post #1     playpong Aug 22 2010, 9:08 pm

[Avatar]
offlinecontact
Rank: Member
I have a trigger set up to send units who enter a region, to a different region - but it sends structures as well because the Units term refers to both structures and men. I would like it to not send structures. Here is what I have now:

NOTE: I also don't want the builders to be sent, so that's what's set up now.

Quote
Events-
Unit - Any Unit Enters Region1

Conditions-
(Unit type of (Triggering unit)) != Drone
(Unit type of (Triggering unit)) != Probe
(Unit type of (Triggering unit)) != SCV

Actions-
Send Unit((Triggering unit))*

*calls another function that moves the unit over to Region2

I've searched through a bunch of the options in place of (triggering unit) for Unit Type of () but I can't seem to find something that will help. Any ideas?

NOTE: I believe i should be qualifying the unit type BEFORE calling Send Unit((Triggering unit)) so that's why I am trying to put it here.

Thanks!

Top

Post #2     Temp Aug 22 2010, 9:15 pm

[Avatar]
offlinecontact
Rank: Regular
Use a unit filter (function is called Unit Filter Match). You can exclude structures that way.

Top

Post #3     Ahli Aug 22 2010, 9:17 pm

[Avatar]
Nothing yet! Almost done. Very powerful, very strong.
offlinecontact
Rank: Elite
solution that everyone should see:
Add all buildings to the list in the conditions...

bahhh. I'm to slow, Temp's solution is better ;D

(user posted image)
Top

Post #4     playpong Aug 22 2010, 9:20 pm

[Avatar]
offlinecontact
Rank: Member
Spot on! Thanks for the quick response.

EDIT: Also, Workers is available in the filter list, so there's an extra three lines saved.
This post was edited 1 time, last edit by playpong: Aug 22 2010, 9:26 pm.

Top
0 members in this topic (italic members are currently writing a reply): None
+ guest(s)


[08:52 pm]
Pr0nogo -- lul
[08:38 pm]
RIVE -- Cut the shit, Microsoft! I borrow 97% of the games I play.
[08:37 pm]
RIVE -- "...if I leave [the disc] with you - if you want to continue to play that game [on your profile] then you have to pay for it."
[08:30 pm]
Vrael -- lrn2lrn2people noob
[08:03 pm]
lil-Inferno -- learn to not be a retard
[08:03 pm]
lil-Inferno -- There's a reason consoles are static - so that everyone has the same specs
[07:46 pm]
Oh_Man -- If it wasn't for consoles forcing games to be exclusive to their console, I'd have no interest in consoles whatsoever.
Please log in to shout.