- Joined
- Jul 10, 2006
- Messages
- 3,315
[SOLVED] SetUnitX/Y to inside a building - unit snaps to nearest spot
Hi
I'm making a custom bunker system (thanks to http://www.hiveworkshop.com/forums/requests-341/bunker-221214/ for the idea)
Going very well so far, encountered my first problem.
My system works by instead hiding the units with Animation - Set unit vertex colouring, reducing speed to 0, and using SetUnitX/Y to move it to the center of the building, from where it can still attack.
The problem: for anything smaller than a lumber mill (10x10 pathing cells), the units are automatically moved to as close as possible right next to the building.
Is there any way I can ignore this automatic function?
I'd preferably not use a loop to constantly move the unit, and using Unit - Hide unit would completely defeat the purpose (the unit has to be able to attack).
Thanks
Hi
I'm making a custom bunker system (thanks to http://www.hiveworkshop.com/forums/requests-341/bunker-221214/ for the idea)
Going very well so far, encountered my first problem.
My system works by instead hiding the units with Animation - Set unit vertex colouring, reducing speed to 0, and using SetUnitX/Y to move it to the center of the building, from where it can still attack.
The problem: for anything smaller than a lumber mill (10x10 pathing cells), the units are automatically moved to as close as possible right next to the building.
Is there any way I can ignore this automatic function?
I'd preferably not use a loop to constantly move the unit, and using Unit - Hide unit would completely defeat the purpose (the unit has to be able to attack).
Thanks
Attachments
Last edited: