My Script Trigger doesn't working

M

Maximus

Guest
Code:
Mass Death Loop A
    Events
    Conditions
    Actions
        Unit - Create 1 Death for (Owner of (Triggering unit)) at TempPoint facing (Facing of (Triggering unit)) degrees
        Set TempPoint = (Position of (Triggering unit))
        Custom script:   local location TempPoint = GetUnitLoc(GetLastCreatedUnit())
        Custom script:   if (udg_TempInteger <= 0) then
        Custom script:       set udg_TempUnitGroup = GetUnitsInRangeOfLocMatching(1000.00, GetRectCenter(TempPoint), Condition(function MatchOpp))
        Custom script:   endif
        Custom script:   set udg_TempUnit = GetClosestUnit(udg_TempUnitGroup, udg_TempPoint)
        Unit - Order (Last created unit) to Orc Far Seer - Chain Lightning TempUnit
        Custom script:   call RemoveLocation(udg_TempPoint)
        Custom script:   call RemoveLocation(TempPoint)
        Unit Group - Remove TempUnit from TempUnitGroup
        Set TempInteger = (TempInteger + 1)
        If (TempInteger Greater than or equal to 2) then do (Trigger - Run Mass Death Destroy <gen> (checking conditions)) else do (Do nothing)
Why when I save the game the TempPoint( local var) errors?
 

corvusHaunt

New Member
Reaction score
96
A 'point' is the GUI of 'location', while a 'region' is really a 'rect'. With this knowledge, go forth and fix. :)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top