bowser499
Member
- Reaction score
- 1
See the image.
Actions -
set Unit_Position = Position of Triggering Unit
set x_Rect = 600
set y_Rect = 300
set y_RectOFFSET = y_Rect / 2
Create Region at Unit_Position with size (x_Rect, y_Rect) offset by y_RectOFFSET towards Facing of Triggering Unit
set Rect = Last Created Region
Actions -
set Unit_Position = Position of Triggering Unit
set x_Rect = 600
set y_Rect = 300
set y_RectOFFSET = y_Rect / 2
Create Region at Unit_Position with size (x_Rect, y_Rect) offset by y_RectOFFSET towards Facing of Triggering Unit
set Rect = Last Created Region
Pick all units in RECT and
Actions:
Add Picked Unit to UNIT_Group
//
// Do your actions and what not
//
call RemoveLocation (udg_Unit_Position)
call DestroyGroup (udg_UNIT_Group)
// the code to destroy regions?
SW------------S-----------SE
---------------------------
---------------------------
W--------------------------E
---------------------------
---------------------------
NW------------N------------NE
where the directions(SE, NW, Etc) is the facing angle of the unit
You can't create diagonal regions as far as I know...
no you cant, but you can offset them to make it work i edited my post above to show
E
unit starts effect of ability
C
Ability = your ability
A
Create 1 castdummy at position of caster offset by 480 towards facing angle of casting unit
pick all units within 500 of last created unit
cause last created unit to damage picked unit