- Joined
- Feb 11, 2008
- Messages
- 809
Can someone please explain to me why when i use;
Heres full trigger;
- call RemoveLocation(udg_RegionLock[udg_PlayerNumber])
- line 392: cannot convert rect to location
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))
-
Conditions
-
Or - Any (Conditions) are true
-
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
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Else - Actions
-
If - Conditions
- 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])
-
Events