- Joined
- Apr 5, 2011
- Messages
- 245
We have IssueImmediateOrder, IssuePointOrder and IssueTargetOrder.
Is it good if we would have this:
Is it good in point of "clean progamming" to do IssueOrder(u, STOP, 0, 0, null) if we want stop, IssueOrder(u, MOVE, x, y, null) if we want move, IssueOrder(u, ATTACK, 0, 0, target) if we want attack. It removes a lot of crap conditions and shorters code. (Really, Blizzard made a lot of functions with 5132850708 parameters useless in most of cases)
Is it good if we would have this:
JASS:
function IssueOrder takes unit u, integer id, real x, real y, unit target returns nothing