| 08-01-2002, 01:56 AM | #1 |
Guest | Alright, I'm wondering if the "Unit - A Unit Enters Region" trigger will be set off if the unit is preplaced in the region. And if it doesn't, is there any way to get around this? I'm trying to move a preplaced unit from one region to another. I'm using the "Unit - A Unit Enters Region" trigger because it has to be universal. Here is the exact trigger: Events: Unit - A unit enters 0 <gen> Conditions: bIsMoving = True iMovesLeft Greater than or equal to 1 Actions: Unit - Order uPlayerPiece[iTurn] to move to (Center of 1 <gen>) Set iMovesLeft = (iMovesLeft - 1) (All the variables are set properly, so I'm assuming the problem is the Unit enters part.) Thanks ahead for any help/suggestions. -HyB |
| 08-01-2002, 04:35 AM | #2 |
Guest | I dont think the "Unit - A Unit Enters Region" trigger will be set off for preplaced units. A way around this may be to make another region where you want the unit, and create it during "Map Initialization" that should trigger your "Unit - A Unit Enters Region" trigger. |
| 08-01-2002, 06:23 AM | #3 |
couldn't you just put an action at the end of the trigger that moves the pre-placed unit that runs the trigger you have with the unit enters event? like: actions: unit - move (unit) to region (region) facing (angle) trigger - run (unit enters region trigger) i kno thats not the actual syntax for the triggers but i hope you get what i mean. |
