CYBER_Aeon
New Member
- Reaction score
- 11
Can somebody help me with this trigger? I have a series of structures that have no collision box, which unfortunately means that other structures can be built on top of them. So instead, i've decided to write a trigger that detects when a structure is about to be built on top of another structure, and cancel that construction.
For some reason though, this trigger doesn't seem to be firing. At all.
(Note: The check radius is properly a bit large at the moment, and the point value is the actual worth of the item, so those two components are expected)
+Rep to anybody who can make this stupid trigger work.
For some reason though, this trigger doesn't seem to be firing. At all.
(Note: The check radius is properly a bit large at the moment, and the point value is the actual worth of the item, so those two components are expected)
Code:
Small Radius Safety
Events
Unit - A unit Begins construction
Conditions
(Unit-type of (Constructing structure)) Equal to Cage
(Unit-type of (Constructing structure)) Equal to Barrier Marker
(Unit-type of (Constructing structure)) Equal to Tower Marker
(Unit-type of (Constructing structure)) Equal to Trap Marker
Actions
Set tmpUnits = (Units within 180.00 of (Position of (Constructing structure)))
Unit Group - Pick every unit in tmpUnits and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) is A structure) Equal to True
Then - Actions
Game - Display to (Player group((Owner of (Triggering unit)))) the text: |CFFFF6666You canno...
Player - Add (Point-value of (Constructing structure)) to (Owner of (Constructing structure)) Current gold
Unit - Kill (Constructing structure)
Skip remaining actions
Else - Actions
+Rep to anybody who can make this stupid trigger work.