Everything is mutable; nothing is sacred
Trying to get "Selected Unit by Player". Any ideas?
Blizz added an automatic deletion so that it keeps track of the objects, and when nothing else in the script references them, they will be deleted from the memory. However, only these types apply:I wonder if there are leaks.
native unitgroup UnitGroupSelected (int inPlayer);
native bool UnitIsSelected (unit inUnit, int inPlayer);
Where are you getting the "Move" command?Trigger:
- Untitled Trigger 003
- UI - Player 1 clicks Left mouse button Down.
- Local Variables
- Unit - Order Zuk'rah [109.25, 33.00] to ( Move targeting (Point((Mouse X position clicked in the world), (Mouse Y position clicked in the world)))) (Replace Existing Orders)
- Environment - Create a Small Protoss explosion at (Point((Mouse X position clicked in the world), (Mouse Y position clicked in the world)))
To move to the clicked position, effect is there so you can see where you clicked.
Just look how the workers data fields are set-up and there you go.To attack a nearby unit using C, had to go through so much to find the value within the editor to turn auto-attack off.
"The data editor can literally edit all of the game files, . . ." -BlizzardThe Data editor looks ridiculously complicated...