qwerty123456
New Member
- Reaction score
- 4
How do I make only one type of unit to slide?
This is what I got so far...
This is what I got so far...
Trigger:
- Slide
- Events
- Time - Every 0.03 seconds of game time
- Conditions
- Actions
- Set Ugroup = (Units in (Playable map area) matching ((Terrain type at (Position of (Matching unit))) Equal to (==) Northrend - Ice))
- Unit Group - Pick every unit in Ugroup and do (Actions)
- Loop - Actions
- Set LocSU = (Position of (Picked unit))
- Set MoveLocSU = (LocSU offset by 20.00 towards (Facing of (Picked unit)) degrees)
- Unit - Move (Picked unit) instantly to MoveLocSU
- Custom script: call RemoveLocation (udg_MoveLocSU)
- Custom script: call RemoveLocation (udg_LocSU)
- Loop - Actions
- Custom script: call DestroyGroup (udg_Ugroup)
- Events
Trigger:
- Steer
- Events
- Unit - A unit Is issued an order targeting a point
- Conditions
- Actions
- Set Sloc = (Position of (Ordered unit))
- Unit - Move (Ordered unit) instantly to Sloc, facing (Angle from Sloc to (Target point of issued order)) degrees
- Custom script: call RemoveLocation (udg_Sloc)
- Events