Приветствую знающих. У меня очередной вопрос, потому что немного углубился в функции native, которые не видел раньше. Этот вопрос касается приказов для юнитов.
native IssueInstantPointOrder takes unit whichUnit, string order, real x, real y, widget instantTargetWidget returns boolean
native IssueInstantPointOrderById takes unit whichUnit, integer order, real x, real y, widget instantTargetWidget returns boolean
native IssueInstantTargetOrder takes unit whichUnit, string order, widget targetWidget, widget instantTargetWidget returns boolean
native IssueInstantTargetOrderById takes unit whichUnit, integer order, widget targetWidget, widget instantTargetWidget returns boolean
Знаю,что приказы можно задавать через id и через строку, но вот instant несколько смущает, ровно также, как и требуемый widget-объект instantTargetWidget . Переводчик выбивает, что это что-то мгновенное, но что под этим имеет ввиду Warcraft 3? Вопрос: для чего нужны эти функции, и чем они отличаются от аналогичных без instant'а?
Принятый ответ
>> IssueInstantTargetOrder: The only use of this function is to make units give items from their inventory to other units. The order in this case would be smart, the target widget is the item and the instant target widget is the target unit. The ordered unit will then move towards the target unit and hand the item over.
>>These natives have terribly confusing names, but I've heard that they are for manipulating items. I.e. Give this item (one widget argument) to this unit (another widget argument) or drop it at this point. I don't know which argument is the item and which is the target unit though.
гугл помог, а память подвела, покупка через Neutral* приказы делается
`
ОЖИДАНИЕ РЕКЛАМЫ...
0
Показать
DracoL1ch
9 лет
0
Показать
точно знаю только то, что IssueInstantTargetOrderById можно использовать для триггерных покупок в нейтральных магазинах. targetWidget = покупатель, order = id покупаемого итема/юнита.
0
Показать
Пушистый
9 лет
0
Показать
DracoL1ch, только там аргументов на один больше получается.
2
Показать
DracoL1ch
9 лет
2
Показать
>> IssueInstantTargetOrder: The only use of this function is to make units give items from their inventory to other units. The order in this case would be smart, the target widget is the item and the instant target widget is the target unit. The ordered unit will then move towards the target unit and hand the item over.
>>These natives have terribly confusing names, but I've heard that they are for manipulating items. I.e. Give this item (one widget argument) to this unit (another widget argument) or drop it at this point. I don't know which argument is the item and which is the target unit though.
гугл помог, а память подвела, покупка через Neutral* приказы делается
Принятый ответ
0
Показать
Пушистый
9 лет
0
Показать
DracoL1ch, спасибо большое)
Чтобы оставить комментарий, пожалуйста, войдите на сайт.