Problems list:
- The Center Location action does not center ONLY if the targeted unit is present. The way you did it, it will always end up on the last unit centered (Rocket Launcher), but when it can't find a Rocket Launcher on the map anywhere, it will automatically center on the map's own center (what Urmom described)
- The Enter Transport AI Script shouldn't have waits next to it, since you want to constantly run it.
- When is switch "play 1" set? I can't find it, and yet it's required for the Sub Machine Gun.
- Your weapon switching system uses 2 triggers for each switch, yet you only need 1; don't fragment up triggers when you don't need to!
Also, whether or not it was intentional, there's no trigger that would reset the weapons (that is, move them back to where the Dropship is) after you switch them.
I looked over InuYasha's triggers, and I suspect that what he posted is close to what you're trying to do. However, the last three need fixing in that the action
"¤ move 1 dropship for player 1 at location(p1 weapon load) to location(p1 weaopn change)" should be moved to after the action
"¤ run AI script enter transport at location(p1 weapon load)", which I think was just an unintended blunder. Also, I think there's a delay in the Enter Transport script too, so you'd need a Wait in there as well.
E.g.
| Trigger |
| Description: |
| sub machine gun |
|
| Players: |
| ¤ player 1 |
| Conditions: |
| ¤ current player brings atlaest 1 sub machine gun to location(weapon change) |
| Actions: |
¤ move all men at location(p1 unit) to location(p1 weapon load)
|
¤ move 1 sub machine gun at location(p1 weapon change) to location(p1 unit)
|
¤ move 1 dropship for player 1 at location(p1 weapon change) to location(p1 weaopn load)
|
¤ run AI script enter transport at location(p1 weapon load)
|
¤ wait 200 ms
|
¤ move 1 dropship for player 1 at location(p1 weapon load) to location(p1 weaopn change)
|
¤ display text message: Weapon changed to Sub Machine Gunpreserve trigger
|
| ¤ preserve trigger |
Red=addition,
Yellow=relocation