Ncrackz
New Member
- Reaction score
- 2
Hello, i've recently made a spell that would heal allies around you and will give them the ability to walk through unpassable terrain for 8 seconds, i'm not sure what I did wrong if someone could look at this, please help
Thank you.
Thank you.
Code:
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Light's Grace
Actions
Set Grace_Pnt = (Position of (Triggering unit))
Set Grace_Unit = (Units within 450.00 of Grace_Pnt matching (((Matching unit) belongs to an ally of (Owner of (Triggering unit))) Equal to True))
Unit Group - Pick every unit in Grace_Unit and do (Actions)
Loop - Actions
Set Grace_Pick = (Position of (Picked unit))
Unit - Turn collision for (Picked unit) Off
Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + 375.00)
Special Effect - Create a special effect at Grace_Pick using Abilities\Spells\Human\Resurrect\ResurrectCaster.mdl
Wait 8.00 seconds
Unit - Turn collision for (Picked unit) On
Custom script: call RemoveLocation (udg_Grace_Pnt)
Custom script: call RemoveLocation (udg_Grace_Pick)
Custom script: call DestroyGroup (udg_Grace_Unit)
Special Effect - Destroy (Last created special effect)