| 02-17-2005, 09:10 PM | #1 |
I'm having a hard time trying to get units to hide and unhide for my cinematic. I would hide them but some of them won't stay hidden, and when I try to unhide them, they won't unhide. Here are the triggers I used.... Unit Group - Pick every unit in (Units in Rect 012 <gen>) and do (Unit - Unhide (Picked unit)) or Unit Group - Pick every unit in (Units in Rect 012 <gen>) and do (Unit - Hide (Picked unit)) I'm pretty sure this is the correct way to do it but sometimes they jsut won't hide or unhide. Is it like only a certian number of units can be hidden at a time or something? |
| 02-17-2005, 09:21 PM | #2 | |
it says for both Quote:
|
| 02-17-2005, 09:40 PM | #3 | |
Quote:
Sorry, that's not the problem, just a typo. The triggers are as I want them, But they just won't work..... |
| 02-17-2005, 09:56 PM | #4 |
Firstly, right-click the trigger and click copy as text to paste in here. Secondly, hiding units hides them from the triggers. When you do a pick all units in _____ it doesn't see them. They need to be held in a variable. |
| 02-17-2005, 10:32 PM | #5 | |
Quote:
Explain please? |
| 02-17-2005, 11:06 PM | #6 | |
Guest | Quote:
Finally, some one I can help! I've always been asking questions. You ready? Here we go! Go into the trigger editor (f4). At the top one of the buttons you can press looks like a orange x and is called variables. Click that. Now in the box that opens, there is a button at the top similar to the one you just pressed, a button with a green x and a green + sign on it. Push that button. This is called a variable. You are making a new variable. Give it a descriptive name, like CinemaHidden or something like that. Make it a "unit group" variable, leave the "array" box unchecked, and leave the value as "empty unit group (default)." Okay. Now, on the trigger where you want to hide units, change "unit- hide picked unit" to "unit group- add picked unit to (name of unit group here)". Click the name that is there, I think it is "units in playable map area", and in the box that comes up, click the variable section, and pick "CinemaHidden" or whatever you called it from the pulldown menu. Make sure the "variable" dot space has the dot in it. Click ok for everything. Now add an action that says "unit- hide picked unit." Now your hide trigger is done. Now the unhide trigger is "pick every unit in (CinemaHidden) and do unit- unhide unit." There you have it. If you want to do something like this: Hide Unit A Hide Unit B Unhide Unit A you are going to need to check the array box, but it's more complicated than that. Tell me if that's what you want and I'll gladly explain it for you. Don't forget rep if you have enough points to give it! I need some so I can give other people some. |
| 02-18-2005, 01:05 AM | #7 |
Alright thanks, i'm gunna try this, rep for you ![]() EDIT: Ok I tried it it didn't work out too good....I can't find pick every unit in group, this is what I do have. Unit Group - Pick every unit in (Units in Rect 010 <gen>) and do (Unit - Unhide (First unit of group CinemaHidden)) I'm not sure but this is how I have ti set up. I have a village with civilians and soilders placed around for later. What I did was set up rects that the soilders are in and hid them at the beginning fo cinema. I also amde a region covering the whole village. So now that I want the soilders only showing, I hid everything in the large covering region, then unhid only the soilder regions. Also I have units placed on the walls and in front fo the gate, I hide them at the beginning of cinema and unhide them later. How do I do this? Do you have AIM, MSN, Yahoo so that I can contact you easier? |
| 02-18-2005, 02:18 AM | #8 | |
Guest | Quote:
Oh, sorry, didn't you see the earlier help, pick units in a region doesn't work for hidden units? You have to pick units in CinemaHidden and do unhide, sorry. Look back at my earlier post, it's pretty specific. I'm pming you my aim, I'll be on till ~10:45. Thanks for the rep, jsakic. |
| 02-18-2005, 03:13 AM | #9 |
You put all units in a unit group, then pick the units in the group and hide them. You select all the units in the unit group and unhide them to unhide the previously hidden units. |
| 02-18-2005, 06:06 AM | #10 |
Guest | The best I can tell you is to put them into a unit group variable. Hidden units ARE NOT found in the region ques, so you must put them in a unit group. Make a new unit groupa nd do something like this: Events Whatever you want Condition Actions Pick every unit in units in your region and do set yourunitgroupvariable = (picked unit) Now put your actions under that. That should work fine:). |
