| 10-20-2006, 11:21 PM | #1 |
Is it? I'm redoing a coding system I made ages ago in GUI back when I was a scripting newb and part of the code requires a unit to unload all of its units if it runs out of mana. However, doing it automatically requires some ugly and inefficient scripting, and I figure it wouldn't hurt if it allowed you to do it manually. However, is it possible to freeze a unit to still allow you to order unloads, while forcing it to not move? ==Edit== Gah, typo in my title. Hope I didn't goof anyone up with the moronic "Disallowing a unit to move and still allow it to move". I mean I want it to not be able to move but still take orders for close range no-movement-required orders. |
| 10-21-2006, 06:01 PM | #2 |
Just register whenever the unit is ordered a target order, check if the order was move,patrol, whtaever you want tro disallow, pause the unit order the unit to stop unpause (maybe with a 0.00 second timer, test it out). Should work. |
| 10-21-2006, 06:40 PM | #3 | |
Quote:
Timer not needed if you pause. |
| 10-22-2006, 07:02 AM | #4 |
There are some "special" oreders where you need it. Look at Vexorian's Indipendant Summons. |
