[Trigger] Expected '

Status
Not open for further replies.
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:
 
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.
Back
Top