Regga-Voska
New Member
- Reaction score
- 0
I have created a trigger that looks like this.....
And it suppose to move the unit(s), as you can see..... BUT THE UNIT STAYS AND THE SHADOW OF THE UNIT MOVES AS THE UNIT SHOULD!!!!!!!!!!:banghead:
And I hope you can give me a great answer:thup:
Trigger:
- This is the stupid trigger that doesn't work as it should do.
- Events
- Time - Every 0.05 seconds of game time
- Conditions
- Actions
- Set Facing[1] = (Facing of ***** <gen>)
- Custom script: set udg_X[1] = GetUnitX(udg_PlayerUnit[1]) + udg_Move[1] * Cos(udg_Facing[1] * bj_DEGTORAD)
- Custom script: set udg_Y[1] = GetUnitY(udg_PlayerUnit[1]) + udg_Move[1] * Sin(udg_Facing[1] * bj_DEGTORAD)
- Custom script: call SetUnitX(udg_PlayerUnit[1] , udg_X[1])
- Custom script: call SetUnitY(udg_PlayerUnit[1] , udg_Y[1])
- Unit - Make PlayerUnit[1] face (Facing[1] + Rotation[1]) over 0.00 seconds
- Events
And it suppose to move the unit(s), as you can see..... BUT THE UNIT STAYS AND THE SHADOW OF THE UNIT MOVES AS THE UNIT SHOULD!!!!!!!!!!:banghead:
And I hope you can give me a great answer:thup: