Hi, I've been working on a training map to practice dropping . I am trying to crate a region periodically that spawns a few workers. The player must be required to drop marines or marauders into the region to kill the workers.
I know how to periodically generate the workers in the region.
What I'd like to know is how to require the player to use marines to drop in (atop a cliff or island) and get some reward like points etc. for killing the probes with marines or marauders, or at least disallow the use of any other unit to engage the workers.
Well, you can use a trigger to detect if the killer is a Marine/Marauder or not, something like:
Events
- Any unit dies
Conditions:
- ((Unit Type of (Triggering Unit)) is Worker) == True (the condition is a "Unit Type Classification Check")
- Or
- (Unit Type of (Killing Unit)) == Marine
- (Unit Type of (Killing Unit)) == Marauder
If you want the player to kill the workers from a specific spot (ie, the mineral line, a cliff, or whatever), then create a region on that spot and add another condition:
- ((Killing Unit) is in (<your region>) == True
Thanks for the help. I just surrounded the drop area with feilds that check for the dropship and marine unit type, and otherwise kill the unit. Simple, effective.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hi, I've been working on a training map to practice dropping . I am trying to crate a region periodically that spawns a few workers. The player must be required to drop marines or marauders into the region to kill the workers.
I know how to periodically generate the workers in the region.
What I'd like to know is how to require the player to use marines to drop in (atop a cliff or island) and get some reward like points etc. for killing the probes with marines or marauders, or at least disallow the use of any other unit to engage the workers.
Thanks for your help.
Well, you can use a trigger to detect if the killer is a Marine/Marauder or not, something like:
Events
- Any unit dies
Conditions:
- ((Unit Type of (Triggering Unit)) is Worker) == True (the condition is a "Unit Type Classification Check")
- Or
- (Unit Type of (Killing Unit)) == Marine
- (Unit Type of (Killing Unit)) == Marauder
If you want the player to kill the workers from a specific spot (ie, the mineral line, a cliff, or whatever), then create a region on that spot and add another condition:
- ((Killing Unit) is in (<your region>) == True
I see, I'll work on it and let you know how that goes. thanks
@miket2424: Go
Thanks for the help. I just surrounded the drop area with feilds that check for the dropship and marine unit type, and otherwise kill the unit. Simple, effective.