deathblade
New Member
- Reaction score
- 4
Code:
Master Check
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Master Marker
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
And - All (Conditions) are true
Conditions
(Number of units in (Units within 400.00 of (Target point of ability being cast) matching (((Unit-type of (Matching unit)) Equal to Death Marker) and ((Unit-type of (Matching unit)) Equal to Master Marker)))) Equal to 0
(Number of units in (Units in (Entire map) matching ((Unit-type of (Matching unit)) Equal to Master Marker))) Equal to 0
Then - Actions
Unit - Create 1 Master Marker for (Owner of (Triggering unit)) at (Target point of ability being cast) facing Default building facing degrees
Else - Actions
Custom script: call SimError(GetOwningPlayer(GetTriggerUnit()), "You can place a marker here.")
everything works exept when i cast the spell again (within 400 range) it just goes on as if i didnt put that range check line