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

[Trigger] Expected '

Status
Not open for further replies.
Level 22
Joined
Sep 24, 2005
Messages
4,821
Try using GetUnitX and GetUnitY instead of GetLocationX and GetLocationY

EDIT: Wait, are those units (udg_pWayGate1)?
 
Change this
JASS:
 Custom script: call WaygateSetDestination(udg_uPortalIn[udg_Temp_Int], GetLocationX(udg_pWayGate1[udg_Temp_Int]), GetLocationY(udg_pWayGate1[udg_Temp_Int])
to this.
JASS:
 Custom script: call WaygateSetDestination(udg_uPortalIn[udg_Temp_Int], GetLocationX(udg_pWayGate1[udg_Temp_Int]), GetLocationY(udg_pWayGate1[udg_Temp_Int]))
 
Try using GetUnitX and GetUnitY instead of GetLocationX and GetLocationY

EDIT: Wait, are those units (udg_pWayGate1)?

Prefix p = Point
Prefix u = unit
However in my trigger I set the point = position of the unit for leak purposes but I think your idea is better if it doesn't leak.

I've find that I forgot the bracket at the end. Thank you everyone :)

@IcemanBo: I've read somewhere that SetUnitX and SetUnitY reads faster and ignores pathing while SetUnitXY is slower and does check pathing. I didn't check if that is true though.
 
@IcemanBo: I've read somewhere that SetUnitX and SetUnitY reads faster and ignores pathing while SetUnitXY is slower and does check pathing. I didn't check if that is true though.
I guess you mean SetUnitX/Y vs. MoveUnit?^^
Because MoveUnit Instantly does check pathing (and sometimes it's cool)

Here you use GetLocationX (=! SetUnitX), but yes you can do it like this. :wwink:
 
Level 18
Joined
Sep 14, 2012
Messages
3,413
Hey people

I'm improving my old portal spell and used this function:
  • Custom script: call WaygateSetDestination(udg_uPortalIn[udg_Temp_Int], GetLocationX(udg_pWayGate1[udg_Temp_Int]), GetLocationY(udg_pWayGate1[udg_Temp_Int])
It gives me an error saying: Expected '
What does that mean??

Please help

You forgot a ')' at the end of the line ^^'
 
Status
Not open for further replies.
Top