HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

custom script build

09-26-2006, 10:38 PM#1
GosuSheep
i'm sorry to ask what could be an obvious question, but what is the function to issue an order to build a building at a certain point?

replies are greatly appreciated
09-26-2006, 11:13 PM#2
wyrmlord
I believe this is what you're looking for:
Collapse JASS:
IssueBuildOrderById takes unit whichPeon,string unitId,real x,real y returns boolean
09-27-2006, 05:13 AM#3
GosuSheep
well im talking about using that kind of function in the regular world editor with GUI and stuff.
09-27-2006, 05:32 AM#4
zen87
Trigger:
Actions
Unit - Issue build order

i tot it is easy to find..
09-28-2006, 06:38 PM#5
GosuSheep
yeah but i dont know how to select a farm or a point for the unit to build at
09-28-2006, 08:07 PM#6
Anopob
I think you can't, but maybe you can do something like:

Trigger:
Build Farm
Collapse Events
Time - Elapsed game time is 5.00 seconds
Conditions
Collapse Actions
Unit - Order Peasant to Move To Region
Animation - Play Peasant's work animation
Unit - Create 1 Farm for Player 1 (Red) at Region facing Default building facing degrees
09-28-2006, 09:14 PM#7
The_AwaKening
Quote:
Originally Posted by wyrmlord
I believe this is what you're looking for:
Collapse JASS:
IssueBuildOrderById takes unit whichPeon,string unitId,real x,real y returns boolean
Notice real x, real y
That is where you are building.

The GUI method is looking for location rather than coordinates. No need to order unit to a location first.
09-30-2006, 05:20 PM#8
BertTheJasser
Anopob: Bah! Don't touch this kind of **** again.
The AwaKening: Good explanation. +Rep
10-02-2006, 02:17 AM#9
The_AwaKening
WoW, +rep from someone that didn't even need the help Thanks
10-02-2006, 05:34 AM#10
Mystic Prophet
Hmm I realize that the jass method is more efficient. But I figured I should point out that you can do it in gui as well.

Trigger:
Unit - Order Peasant 0033 <gen> to build a Barracks at (Point(50.00, 70.00))