• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[GUI] Strange Error

Status
Not open for further replies.
Level 12
Joined
Feb 11, 2008
Messages
809
Can someone please explain to me why when i use;

  • call RemoveLocation(udg_RegionLock[udg_PlayerNumber])
it gives me this error and does not allow me to save:

  • line 392: cannot convert rect to location
*EDIT*

Heres full trigger;

  • Movement Lock
    • Events
      • Unit - A unit owned by Player 1 (Red) Is issued an order targeting a point
      • Unit - A unit owned by Player 2 (Blue) Is issued an order targeting a point
    • Conditions
    • Actions
      • Set PlayerNumber = (Player number of (Owner of (Triggering unit)))
      • Set Temp_Point[PlayerNumber] = (Position of SystemUnit[PlayerNumber])
      • Set Temp_Point2[PlayerNumber] = (Temp_Point[PlayerNumber] offset by (5.00, (Facing of SystemUnit[PlayerNumber])))
      • Set SystemUnits[PlayerNumber] = (Player group((Player(PlayerNumber))))
      • Set RegionLock[PlayerNumber] = (Region((Position of SystemUnit[PlayerNumber]), (Position of SystemUnit[PlayerNumber])))
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Or - Any (Conditions) are true
            • Conditions
              • (Issued order) Equal to (Order(smart))
              • (Issued order) Equal to (Order(attack))
              • (Issued order) Equal to (Order(move))
              • (Issued order) Equal to (Order(patrol))
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (RegionLock[PlayerNumber] contains (Target point of issued order)) Equal to True
              • LockGameMovement Equal to True
            • Then - Actions
              • Unit - Order SystemUnit[PlayerNumber] to Attack Ground Temp_Point2[PlayerNumber]
              • Game - Display to SystemUnits[PlayerNumber] the text: "|cffff0000Error - ...
            • Else - Actions
        • Else - Actions
      • Custom script: call RemoveLocation(udg_Temp_Point[udg_PlayerNumber])
      • Custom script: call RemoveLocation(udg_Temp_Point2[udg_PlayerNumber])
      • Custom script: call RemoveLocation(udg_RegionLock[udg_PlayerNumber])
      • Custom script: call DestroyForce( udg_SystemUnits[udg_PlayerNumber])
 
Status
Not open for further replies.
Top