• 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.

A JASS Question on Building Structures

Status
Not open for further replies.
Level 12
Joined
May 20, 2009
Messages
822
Is there any way to force a unit to construct a structure?

I see that this exists in Common.j native IssueBuildOrder .

But I'm not quite sure how to use it...Does it have any restrictions, like if the unit is Available/Unavailable (Using the Trigger Make Unit Available/Unavailable for construction)?

Are there tech requirements?

And is this how it would be set up? (Not using real things, just gonna describe)

Get Mouse Position
Check if Mouse Button is clicked
IssueBuildOrder

?

How would I figure out what building to build based on whichever button in the Command Card is pressed?
 
Level 5
Joined
Feb 22, 2013
Messages
161
The function does have some.. The player must have the resources (Gold and lumber and for units, the food) and tech-tree requirements to be able to build it.
 
Last edited:
Status
Not open for further replies.
Top