I am doing an opening cinematic where a unit is created out of view in an action from a map initialization event using "Unit- Creat 1 unit as cargo in Medivac" then having the medivac fly into view and drop that unit off. I created an action immediately after using "Unit-Change ownership of (Cargo unit in medivac at slot 1) to player 1" and when the unit gets dropped of I have control of it. The problem is that I want that unit to be able to trigger an event when entering into a region. When I look for the unit in the unit variable it is not there, only units placed before initialization appear. How can I get this to work?
Thank you I figured it out. I had to make a global variable then once that unit was created inside the medivac, I set the glocal variable to that unit. Now the variable (which is the unit) can trigger events.
I am doing an opening cinematic where a unit is created out of view in an action from a map initialization event using "Unit- Creat 1 unit as cargo in Medivac" then having the medivac fly into view and drop that unit off. I created an action immediately after using "Unit-Change ownership of (Cargo unit in medivac at slot 1) to player 1" and when the unit gets dropped of I have control of it. The problem is that I want that unit to be able to trigger an event when entering into a region. When I look for the unit in the unit variable it is not there, only units placed before initialization appear. How can I get this to work?
Hmm
I'm having trouble understanding what you want to do.
Posting screens from your triggers (or just text) would help a lot.
Anyway, I believe that you need to have
You cannot use variables in event declarations.
Regards
Thank you I figured it out. I had to make a global variable then once that unit was created inside the medivac, I set the glocal variable to that unit. Now the variable (which is the unit) can trigger events.