- Joined
- Nov 20, 2005
- Messages
- 372
I hate it to read it again and again how to make a slide.
What you need:
Temp_point_unit ( array player numbers )
Temp_point_slide ( array player numbers )
Slide_unit ( array player numbers ( Must set in earlier game )
1st trigger
Slide
Event:Every 0,03 seconds of the game
conditions : /
Action:
For each integer A from 1 to 10 do
Set Temp_point_Unit[For Loop Integer A] = Position of SlideUnit[Integer A]
If TerrainType at position of Temp_point_Unit[For Loop Integer A] equal to Northrend Ice
then do
Set Temp_point_Slide[For Loop Integer A] = Position of SlideUnit[Integer A] with offset 3 and facing Facing(SlideUnit[IntegerA])degrees
Move SlideUnit[Integer A] to Temp_point_Slide[Integer A]
Custom script : call RemoveLocation(udg_Temp_point_Unit[GetIntegerA())]
Custom script : call RemoveLocation(udg_Temp_point_Slide[GetIntegerA())]
this works fine without any lagg
2nd Trigger
Make unit face point ( needed for slide )
Normally you can't move the unit when its sliding. But you can do it with another trigger
Make unit face degrees
Event:A unit gets an on a point order ( or something like this )
Conditions: Ordered order equal to (move)
Set Temp_Point_Order = Point of Issued Order
If Triggering unit equal to SlideUnit[Playernumber of(Owner of(Triggering unit))] equal to true
Terrain type at position of SlideUnit[Playernumber of(Owner of(triggering unit))] equal to Northrend - ice
Make unit face Temp_Point_Order in 0,1 seconds ( Or your delay )
Custom Script:Call RemoveLocation(udg_Temp_Point_Order[GetConvertedPlayerID(GetUnit( TriggeringUnit())]
That was it.......
What you need:
Temp_point_unit ( array player numbers )
Temp_point_slide ( array player numbers )
Slide_unit ( array player numbers ( Must set in earlier game )
1st trigger
Slide
Event:Every 0,03 seconds of the game
conditions : /
Action:
For each integer A from 1 to 10 do
Set Temp_point_Unit[For Loop Integer A] = Position of SlideUnit[Integer A]
If TerrainType at position of Temp_point_Unit[For Loop Integer A] equal to Northrend Ice
then do
Set Temp_point_Slide[For Loop Integer A] = Position of SlideUnit[Integer A] with offset 3 and facing Facing(SlideUnit[IntegerA])degrees
Move SlideUnit[Integer A] to Temp_point_Slide[Integer A]
Custom script : call RemoveLocation(udg_Temp_point_Unit[GetIntegerA())]
Custom script : call RemoveLocation(udg_Temp_point_Slide[GetIntegerA())]
this works fine without any lagg
2nd Trigger
Make unit face point ( needed for slide )
Normally you can't move the unit when its sliding. But you can do it with another trigger
Make unit face degrees
Event:A unit gets an on a point order ( or something like this )
Conditions: Ordered order equal to (move)
Set Temp_Point_Order = Point of Issued Order
If Triggering unit equal to SlideUnit[Playernumber of(Owner of(Triggering unit))] equal to true
Terrain type at position of SlideUnit[Playernumber of(Owner of(triggering unit))] equal to Northrend - ice
Make unit face Temp_Point_Order in 0,1 seconds ( Or your delay )
Custom Script:Call RemoveLocation(udg_Temp_Point_Order[GetConvertedPlayerID(GetUnit( TriggeringUnit())]
That was it.......