[Trigger] "Unit Count in Transport"?

Status
Not open for further replies.

shayed

S

shayed

Hey, I'm new here, but I've been doing WC3 maps for quite a while.
I'm working on a modern map, and am hoping to use a kind of "vehicle ownership" system- if you're in a vehicle, you own it, if you aren't in it, well, you don't own it.

I've got 90% of it down (or so I'd like to think) but I ran into a roadblock with trying to get something like this:

"If (Number of units in transport) equals 0, then change ownership of (transport) to Neutral Passive."

Looks simple, but I cannot for the life of me get it right!

You got any ideas?
 
Yeah but look in WorldEd, there's no actual way to do that as far as I can tell
 
If your problem is with find if there is a unit inside or not the car.
Do that:

Unit is issued a order with no target
Issued Order is Equal to unload
Set Custom Value of Ordered unit to 1

Unit - Custom value of unit-type of car is equal to 1
Player - Change owner to Neutral Passive
 
Status
Not open for further replies.
Back
Top