- Joined
- May 20, 2009
- Messages
- 822
EDIT: New Issue
NEW ISSUE - NOT SOLVED
Okay, so, I figured out what the problem is. It literally want a string. So I needed to do "hbar" instead of hbar.
The new issue is that, in-game it does nothing other then my
OLD ISSUE - SOLVED
It keeps throwing me an error - "Expected a name" - I'm clearly doing something wrong, I mainly don't know what I'm doing.
This is the use of the function:
native IssueBuildOrder takes unit whichPeon, string unitToBuild, real x, real y returns boolean
I'm not quite sure what the issue is. udg_RealXP1 and udg_RealYP1 are Real Variables. Do these functions just not take variables period? I'm really confused...
-
Test
-
Events
- Unit - A unit Is issued an order targeting a point
-
Conditions
-
And - All (Conditions) are true
-
Conditions
- (Unit-type of (Ordered unit)) Equal to Peasant
-
Conditions
-
And - All (Conditions) are true
-
Actions
- Set RealXP1 = (X of (Target point of issued order))
- Set RealYP1 = (Y of (Target point of issued order))
- Custom script: call IssueBuildOrder(GetTriggerUnit(), "hbar", udg_RealXP1, udg_RealYP1)
- Game - Display to Player Group - Player 1 (Red) the text: ORDER FIRED!
-
Events
JASS:
Custom script: call IssueBuildOrder(GetTriggerUnit(), "hbar", udg_RealXP1, udg_RealYP1)
NEW ISSUE - NOT SOLVED
Okay, so, I figured out what the problem is. It literally want a string. So I needed to do "hbar" instead of hbar.
The new issue is that, in-game it does nothing other then my
- Game - Display to Player Group - Player 1 (Red) the text: ORDER FIRED!
OLD ISSUE - SOLVED
It keeps throwing me an error - "Expected a name" - I'm clearly doing something wrong, I mainly don't know what I'm doing.
This is the use of the function:
native IssueBuildOrder takes unit whichPeon, string unitToBuild, real x, real y returns boolean
I'm not quite sure what the issue is. udg_RealXP1 and udg_RealYP1 are Real Variables. Do these functions just not take variables period? I'm really confused...
Last edited: