mordocai
New Member
- Reaction score
- 17
Ok, so i have actually made a MUI(tell me how to if it isnt)/GUI trigger but i need your peoples help at making it work/pointing out bugs. Its supposed to shoot a dummy unit and make it move smoothly. Right now i need help making the unit move. It moves forward but once, then it just keeps spamming that one spot over and over and over. So basicly i just need the unit to be able to move. Please not that i made this for a request, so thats why the dummies have the wierd names.Here is the code-
Trigger:
- Seele Seal Start
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- (Ability being cast) Equal to Seele Seal (Hero)
- Actions
- Set Seele_Units[1] = (Triggering unit)
- Set Seele_Points[1] = (Position of Seele_Units[1])
- Set Seele_Points[2] = (Target point of ability being cast)
- Unit - Create 1 Moving Dummy Dont use this! for (Owner of Seele_Units[1]) at Seele_Points[1] facing (Position of (Triggering unit))
- Set Seele_Units[2] = (Last created unit)
- Trigger - Turn on Seele Seal Move <gen>
- Events
Trigger:
- Seele seal Move
- Events
- Time - Every 0.03 seconds of game time
- Conditions
- Actions
- Set Seele_Points[3] = (Position of Seele_Units[2])
- Set Seele_Points[4] = (Seele_Points[3] offset by 35.00 towards (Angle from Seele_Points[3] to Seele_Points[2]) degrees)
- Unit - Move Seele_Units[2] instantly to Seele_Points[4]
- Unit - Turn collision for Seele_Units[2] Off
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Integer((Angle from Seele_Points[3] to Seele_Points[2]))) Equal to 50
- Then - Actions
- Unit - Remove Seele_Units[2] from the game
- Set Seele_Group = (Units within 200.00 of Seele_Points[2] matching ((((Matching unit) is A structure) Equal to False) and (((Matching unit) belongs to an enemy of (Owner of Seele_Units[1])) Equal to True)))
- Unit Group - Pick every unit in Seele_Group and do (Actions)
- Loop - Actions
- Set Seele_Units[3] = (Picked unit)
- Unit - Create 1 Dummy Dont use this! for (Owner of Seele_Units[1]) at Seele_Points[2] facing Default building facing degrees
- Set Seele_Units[4] = (Last created unit)
- Unit - Add Seele Seal (Dummy) to Seele_Units[4]
- Unit - Set level of Seele Seal (Dummy) for Seele_Units[4] to (Level of Seele Seal (Hero) for Seele_Units[1])
- Unit - Order Seele_Units[4] to Night Elf Demon Hunter - Mana Burn Seele_Units[3]
- Unit - Add a 1.20 second Generic expiration timer to Seele_Units[4]
- Loop - Actions
- Custom script: call RemoveLocation(udg_Seele_Points[1])
- Custom script: call RemoveLocation(udg_Seele_Points[2])
- Custom script: call RemoveLocation(udg_Seele_Points[3])
- Custom script: call RemoveLocation(udg_Seele_Points[4])
- Custom script: call DestroyGroup(udg_Seele_Group)
- Trigger - Turn off (This trigger)
- Else - Actions
- If - Conditions
- Events