Hi can I get some help with this trigger it keeps crashing right after the Unit spawns
-
Start chance
-

Events
-


Unit - A unit Is issued an order targeting an object
-
-

Conditions
-


Or - Any (Conditions) are true
-



Conditions
-




(Issued order) Equal to (Order(attack))
-




(Issued order) Equal to (Order(smart))
-
-
-


(Destructible-type of (Target destructible of issued order)) Equal to Target
-
-

Actions
-


Set tempinteger = (Random integer number between 1 and 10)
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




tempinteger Equal to 1
-
-



Then - Actions
-




Set TempDest = (Target destructible of issued order)
-




Set Tempunit = (Triggering unit)
-




Set TempReal = (Current life of TempDest)
-




Set temppoint = (Position of TempDest)
-




Wait until (TempReal Greater than (Current life of TempDest)), checking every 0.10 seconds
-




Destructible - Remove TempDest
-




Unit - Create 1 Rock Monster for Neutral Hostile at temppoint facing Default building facing degrees
-
-



Else - Actions
-
-
-








