Spoiler
Show
[gui]SlideSystem
Events
Time - Every 0.04 seconds of game time
Conditions
Actions
-------- This is set the unit u wan to make it slide --------
Set PickUnitGroup = (Units in (Playable map area))
Unit Group - Pick every unit in PickUnitGroup and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
Conditions
(Unit-type of (Picked unit)) Equal to Footman
Then - Actions
Set PickUnit = (Picked unit)
Set PickUnitPoint = (Position of PickUnit)
-------- This is the terrain u wan to make the unit slide --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Terrain type at PickUnitPoint) Equal to Northrend - Ice
Then - Actions
Unit Group - Add PickUnit to SlideGroup
Else - Actions
Unit Group - Remove (Picked unit) from SlideGroup
-------- This is the terrain u wan to make the unit die --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Terrain type at PickUnitPoint) Equal to Northrend - Snow
Then - Actions
Unit - Kill PickUnit
Unit Group - Remove PickUnit from SlideGroup
Else - Actions
Custom script: call RemoveLocation(udg_PickUnitPoint)
Else - Actions
-------- This is make the unit to slide --------
Unit Group - Pick every unit in SlideGroup and do (Actions)
Loop - Actions
Set SlideUnit = (Picked unit)
Set SlidePoint[1] = (Position of SlideUnit)
Set SlidePoint[2] = (SlidePoint[1] offset by 18.00 towards (Facing of SlideUnit) degrees)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) is dead) Equal to False
Then - Actions
Unit - Move SlideUnit instantly to SlidePoint[2]
Else - Actions
Unit Group - Remove SlideUnit from SlideGroup
Custom script: call RemoveLocation(udg_SlidePoint[1])
Custom script: call RemoveLocation(udg_SlidePoint[2])
Custom script: call DestroyGroup(udg_PickUnitGroup)
[/gui]
Events
Time - Every 0.04 seconds of game time
Conditions
Actions
-------- This is set the unit u wan to make it slide --------
Set PickUnitGroup = (Units in (Playable map area))
Unit Group - Pick every unit in PickUnitGroup and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
Conditions
(Unit-type of (Picked unit)) Equal to Footman
Then - Actions
Set PickUnit = (Picked unit)
Set PickUnitPoint = (Position of PickUnit)
-------- This is the terrain u wan to make the unit slide --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Terrain type at PickUnitPoint) Equal to Northrend - Ice
Then - Actions
Unit Group - Add PickUnit to SlideGroup
Else - Actions
Unit Group - Remove (Picked unit) from SlideGroup
-------- This is the terrain u wan to make the unit die --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Terrain type at PickUnitPoint) Equal to Northrend - Snow
Then - Actions
Unit - Kill PickUnit
Unit Group - Remove PickUnit from SlideGroup
Else - Actions
Custom script: call RemoveLocation(udg_PickUnitPoint)
Else - Actions
-------- This is make the unit to slide --------
Unit Group - Pick every unit in SlideGroup and do (Actions)
Loop - Actions
Set SlideUnit = (Picked unit)
Set SlidePoint[1] = (Position of SlideUnit)
Set SlidePoint[2] = (SlidePoint[1] offset by 18.00 towards (Facing of SlideUnit) degrees)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) is dead) Equal to False
Then - Actions
Unit - Move SlideUnit instantly to SlidePoint[2]
Else - Actions
Unit Group - Remove SlideUnit from SlideGroup
Custom script: call RemoveLocation(udg_SlidePoint[1])
Custom script: call RemoveLocation(udg_SlidePoint[2])
Custom script: call DestroyGroup(udg_PickUnitGroup)
[/gui]