S
SpreaDisease
Guest
Code:
Slide on Ice
Events
Time - Every 0.15 seconds of game time
Conditions
Actions
Set tempGroup = (Units in (Playable map area) matching ((Owner of (Matching unit)) Not equal to Player 12 (Brown)))
Set trigGroup[1] = (Units in (Playable map area) owned by Player 1 (Red))
Set trigGroup[2] = (Units in (Playable map area) owned by Player 2 (Blue))
Set trigGroup[3] = (Units in (Playable map area) owned by Player 3 (Teal))
Set trigGroup[4] = (Units in (Playable map area) owned by Player 4 (Purple))
Set trigGroup[5] = (Units in (Playable map area) owned by Player 5 (Yellow))
Set trigGroup[6] = (Units in (Playable map area) owned by Player 6 (Orange))
Set trigGroup[7] = (Units in (Playable map area) owned by Player 7 (Green))
Set trigGroup[8] = (Units in (Playable map area) owned by Player 8 (Pink))
Set trigGroup[9] = (Units in (Playable map area) owned by Player 9 (Gray))
Unit Group - Pick every unit in tempGroup and do (Actions)
Loop - Actions
Set tempPoint = (Position of (Picked unit))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Terrain type at tempPoint) Equal to Northrend - Ice
Then - Actions
Unit Group - Pick every unit in trigGroup[(Player number of (Owner of (Picked unit)))] and do (Actions)
Loop - Actions
Unit - Order (Picked unit) to Move To ((Position of (Picked unit)) offset by 115.00 towards (Facing of (Picked unit)) degrees)
Else - Actions
Custom script: call RemoveLocation(udg_tempPoint)
Custom script: call DestroyGroup(udg_tempGroup)
This is my slide Triggers. but when i slide my unit is moving like im having lagg. do u know wut i can do? plesae help me.