• 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.

I need to fix this Transport Trigger

Status
Not open for further replies.
Level 2
Joined
Aug 31, 2016
Messages
7
Look, I want to activate a Trigger when an unit from Player One (Red) is loaded in a transport, and when it leaves the transport activates another trigger and desactivates the other.

I don't know nothing from triggers actually... but I tried it. :p

I tried with a system maked by me that check if the units is in the transport every 0.50 seconds. It's a good idea but I execute it wrongly.

I'd like to explain something... I don't choose the unit directly because I'll change the units frecuently, but they still owned by the Player One (Red).

(Camera and Arrow Keys triggers are examples haha)


Sorry if you don't understand me correctly, I don't speak English very well. :croll:

Here is the map, I don't show the trigger cause I don't know it :/
 

Attachments

  • Camera Test.w3x
    17.4 KB · Views: 44
Level 13
Joined
Mar 24, 2013
Messages
1,105
What do you want to happen specifically?

You can use the event
  • Unit - A unit Is loaded into a transport
Then you can check if it's a unit owned by player 1. Save this unit to a variable. If it is turn on/do whatever you want.

Then have a periodic trigger checking for the condition
  • (yourUnit is being transported) Equal to False
When this condition is met you can turn off/do whatever you want.
 
Level 2
Joined
Aug 31, 2016
Messages
7
What do you want to happen specifically?

You can use the event
  • Unit - A unit Is loaded into a transport
Then you can check if it's a unit owned by player 1. Save this unit to a variable. If it is turn on/do whatever you want.

Then have a periodic trigger checking for the condition
  • (yourUnit is being transported) Equal to False
When this condition is met you can turn off/do whatever you want.
Look, in my map there is a Camera Wow. I want to when the unit owned by the player 1 enter to a transport, it activates an Arrow Key Movement, and when the unit leaves the transport, the Arrow Key Movement turn off.
 
Status
Not open for further replies.
Top