Issue order targeting point with custom script.

Status
Not open for further replies.
Level 5
Joined
Jun 8, 2020
Messages
29
Need your help guys.

Making own AI for custom map, and i need to order hero to plant the mine at random point around hero.
My problem is that dont know how to issue order targetting point with custom script. To plant the mine i have to use custrom script as it is missing in standart actions.

Usualy i was using custom script to issue order with no target. Example.

call IssueImmediateOrderById(udg_Hero_Palladin, 852625)

Buн how to do it targeting a point?
 
Last edited:
Having problem with syntax.


call IssuePointOrderById( udg_Hero_orcSniper, 852278, OffsetLocation(GetUnitLoc(GetEnumUnit()), GetRandomReal(-100.00, 100.00), GetRandomReal(-100.00, 100.00)) )
What is wrong here?
 
Status
Not open for further replies.
Back
Top