• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

[Trigger] Transport player changing

Status
Not open for further replies.
Level 2
Joined
Aug 18, 2008
Messages
8
Im looking for a way to do this - if no units are inside or within 200 range of a CERTAIN transport it changes teams to neutral Passive.

Note: There are only 12 possible units that can be inside the transport on my map if this is any help.

Light_Switch
 
Level 22
Joined
Dec 31, 2006
Messages
2,216
You should use a region that you place on the unit and check when someone enters that region and set the ownership of your transport to that unit. And reset it when someone leaves.
 
Level 2
Joined
Aug 18, 2008
Messages
8
I dont think that will work because if i have it set that -if units in region < 1 it will give the player control when he is in the region but once he enters the vehicle it will count as only 1 unit and he will lose control of the transport with his unit inside.
 
Level 2
Joined
Aug 18, 2008
Messages
8
I have it set u like this, and for some reason the region never moves from its original spot around the transport.

Events-
Time - every 0.10 seconds of gametime

Actions-
Region - Center Region on (Postition of transport)
 
Level 19
Joined
Aug 24, 2007
Messages
2,888
Every second
set a = false
pick every units near transport and set a = true
if a = false then set make transport owned by another player
 
Status
Not open for further replies.
Top