- Joined
- Sep 25, 2013
- Messages
- 711
-
Sons of Rohan
-
Events
-
Time - Every 0.15 seconds of game time
-
-
Conditions
-
Actions
-
Set RohanRiderGroup = (Units of type Knight of Gondor)
-
Unit Group - Pick every unit in RohanRiderGroup and do (Actions)
-
Loop - Actions
-
Set RohanRider = (Picked unit)
-
Set RohanTrampleUnitPoint = (Position of RohanRider)
-
Set TrampledUnitsGroup = (Units within 130.00 of RohanTrampleUnitPoint matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) belongs to an enemy of (Owner of (Picked unit))) Equal to True) and ((((Matching unit) is A Hero) Equal to False) and ((((Matching
-
Unit Group - Pick every unit in TrampledUnitsGroup and do (Actions)
-
Loop - Actions
-
Set RohanTrampleUnit = (Picked unit)
-
Set RohanTrampleUnitPointOffset = (RohanTrampleUnitPoint offset by 140.00 towards (Angle from RohanTrampleUnitPoint to (Position of RohanTrampleUnit)) degrees)
-
Unit - Move RohanTrampleUnit instantly to RohanTrampleUnitPointOffset, facing (Position of RohanRider)
-
-
-
-
-
Custom script: call DestroyGroup (udg_RohanRiderGroup)
-
Custom script: call DestroyGroup (udg_TrampledUnitsGroup)
-
Custom script: call RemoveLocation (udg_RohanTrampleUnitPoint)
-
Custom script: call RemoveLocation (udg_RohanTrampleUnitPointOffset)
-
-
Also, is there a way to detect if a unit is moving or not moving? I would like to disable the trample effect when the cavalry units are not moving and enable it when they are. Thank you for your time