ok i think iv got this part right
this is the problem
i dunno what to add to the conditions for turn of and turn on for the spell..... it works you slide but u dont stop
i need a condition that turns it on and off
i also need to remove the leaks
P.S i dont evan no if this is MUI YET
EDIT:any 1 out there can help???
Code:
Slide Init
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Slide GUI
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Spell_no Less than 1000
Then - Actions
Set Spell_no = (Spell_no + 1)
Else - Actions
Set Spell_no = 1
Set Caster[Spell_no] = (Casting unit)
Set CasterPosition[Spell_no] = (Position of Caster[Spell_no])
Set TargetPoint[Spell_no] = (Target point of ability being cast)
Set Angle[Spell_no] = (Angle from CasterPosition[Spell_no] to TargetPoint[Spell_no])
Set N[Spell_no] = 0.00
Unit - Turn collision for Caster[Spell_no] Off
this is the problem
Code:
Slide Effect
Events
Time - Every 0.03 seconds of game time
Conditions
Actions
Set CasterPosition[Spell_no] = (Position of Caster[Spell_no])
Set MoveToPoint[Spell_no] = (CasterPosition[Spell_no] offset by 25.00 towards Angle[Spell_no] degrees)
Set N[Spell_no] = 25.00
Unit - Move Caster[Spell_no] instantly to MoveToPoint[Spell_no]
Special Effect - Create a special effect at CasterPosition[Spell_no] using Abilities\Spells\Other\Stampede\StampedeMissile.mdl
Special Effect - Destroy (Last created special effect)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
N[Spell_no] Greater than or equal to Distance[Spell_no]
Then - Actions
Set spellon[Spell_no] = False
Unit - Turn collision for Caster[Spell_no] On
Else - Actions
i dunno what to add to the conditions for turn of and turn on for the spell..... it works you slide but u dont stop
i need a condition that turns it on and off
i also need to remove the leaks
P.S i dont evan no if this is MUI YET
EDIT:any 1 out there can help???