The object of these triggers, which function perfectly well outside of the occassional but well-documented crashing, is to spawn a unit at a random point along the edge of a map, move to a specific location, create an item under it, then move to another edge of the map and be removed. When used in the same playing with two other groups of triggers, this one seems to cause the game to crash as the other two function fine together. Here is the code, I would appreciate any help.
Initial Copy
Events
Unit - A unit Finishes casting an ability
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Ability being cast) Equal to Request Rocket Launcher (Neutral Hostile)
Then - Actions
Wait 1.00 seconds
Game - Display to (All players) the text: TEST
Unit - Create 1 AH-64D Apache Longbow (Rocket Drop) for (Owner of (Casting unit)) at (Random point in Airstrike Top <gen>) facing 0.00 degrees
Set RocketLauncherHeli = (Last created unit)
Unit - Order RocketLauncherHeli to Move To (Center of Helipad <gen>)
Unit - Set RocketLauncherHeli movement speed to 1000.00
Trigger - Turn on RocketTurnOn
Else - Actions
Do nothing
Move to Target Copy (Simple to prevent maniuplating by players in case they manage to overide an anti-selection on the unt)
Events
Time - Every 5.00 seconds of game time
Conditions
Actions
Unit - Order RocketLauncherHeli to Move To (Center of Helipad <gen>)
Turn on ExitMap Copy (Just to note, the altitude adjustments do not work here)
Events
Unit - A unit enters Helipad <gen>
Conditions
(Entering unit) Equal to RocketLauncherHeli
Actions
Trigger - Turn off RocketTurnOn
Animation - Change RocketLauncherHeli flying height to 100.00 at 2.00
Wait 3.00 seconds
Item - Create URL-4T Ultor Tactical Rocket Launcher at (Center of Helipad <gen>)
Wait 1.00 seconds
Animation - Change RocketLauncherHeli flying height to 350.00 at 2.00
Wait 3.00 seconds
Unit - Order RocketLauncherHeli to Move To (Center of Airstrike Rihgt <gen>)
Trigger - Turn on RocketExit
Exit Map Copy
Events
Time - Every 10.00 seconds of game time
Conditions
Actions
Unit - Order RocketLauncherHeli to Move To (Center of Airstrike Rihgt <gen>)
Reset Copy
Events
Unit - A unit enters Airstrike Rihgt <gen>
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Entering unit) Equal to RocketLauncherHeli
Then - Actions
Trigger - Turn off RocketExit
Unit - Remove RocketLauncherHeli from the game
Set RocketLauncherHeli = No unit
Else - Actions
Do nothing
After several uses, this trigger causes the two aforementioned separate trigger groups to crash the game. They normally do not do this and extensive use of just those two has revealed that this trigger does play the key role in leading to the crash.
I'd appreciate your thoughts, thanks.
Initial Copy
Events
Unit - A unit Finishes casting an ability
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Ability being cast) Equal to Request Rocket Launcher (Neutral Hostile)
Then - Actions
Wait 1.00 seconds
Game - Display to (All players) the text: TEST
Unit - Create 1 AH-64D Apache Longbow (Rocket Drop) for (Owner of (Casting unit)) at (Random point in Airstrike Top <gen>) facing 0.00 degrees
Set RocketLauncherHeli = (Last created unit)
Unit - Order RocketLauncherHeli to Move To (Center of Helipad <gen>)
Unit - Set RocketLauncherHeli movement speed to 1000.00
Trigger - Turn on RocketTurnOn
Else - Actions
Do nothing
Move to Target Copy (Simple to prevent maniuplating by players in case they manage to overide an anti-selection on the unt)
Events
Time - Every 5.00 seconds of game time
Conditions
Actions
Unit - Order RocketLauncherHeli to Move To (Center of Helipad <gen>)
Turn on ExitMap Copy (Just to note, the altitude adjustments do not work here)
Events
Unit - A unit enters Helipad <gen>
Conditions
(Entering unit) Equal to RocketLauncherHeli
Actions
Trigger - Turn off RocketTurnOn
Animation - Change RocketLauncherHeli flying height to 100.00 at 2.00
Wait 3.00 seconds
Item - Create URL-4T Ultor Tactical Rocket Launcher at (Center of Helipad <gen>)
Wait 1.00 seconds
Animation - Change RocketLauncherHeli flying height to 350.00 at 2.00
Wait 3.00 seconds
Unit - Order RocketLauncherHeli to Move To (Center of Airstrike Rihgt <gen>)
Trigger - Turn on RocketExit
Exit Map Copy
Events
Time - Every 10.00 seconds of game time
Conditions
Actions
Unit - Order RocketLauncherHeli to Move To (Center of Airstrike Rihgt <gen>)
Reset Copy
Events
Unit - A unit enters Airstrike Rihgt <gen>
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Entering unit) Equal to RocketLauncherHeli
Then - Actions
Trigger - Turn off RocketExit
Unit - Remove RocketLauncherHeli from the game
Set RocketLauncherHeli = No unit
Else - Actions
Do nothing
After several uses, this trigger causes the two aforementioned separate trigger groups to crash the game. They normally do not do this and extensive use of just those two has revealed that this trigger does play the key role in leading to the crash.
I'd appreciate your thoughts, thanks.