• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Issue order targeting point with custom script.

Status
Not open for further replies.
Level 5
Joined
Jun 8, 2020
Messages
28
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:
Level 5
Joined
Jun 8, 2020
Messages
28
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.
Top