• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

[Trigger] Transport player changing

Status
Not open for further replies.

Light_Switch

L

Light_Switch

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
 
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.
 
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.
 
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)
 
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.
Back
Top