- Joined
- Jun 17, 2010
- Messages
- 2,275
Can you attach a unit to another units attachment point? if so please show me an example
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Move unit trigger will fail because it can destroy commands.
SetUnitX and SetUnitY exist. They don't interrupt orders. This is not hard to make,i currently don't have time,but i can do it tomorrow.i do have an idea, i could do a periodic event for attack speed, create a new unit at a certain point, and then issue 1 attack on ground where your aiming, then remove the unit and go again.
local unit u = YourUnit
local real x = GetUnitX(u) + distance * Cos(angle) //Angle must be in radians
local real y = GetUnitY(u) + distance * Sin(angle) //or you can put in degrees but multiply it with bj_DEGTORAD
call SetUnitX(u,x)
call SetUnitY(u,y)
