AttackMoveXY
- Parameters
x integery integer- comment
Pings a location on the mini-map where 'unit' intends to attack-move this unit.
If
AddAssaultis not called before this one, then the units (if any) will remain at their position and will not attack-move the signaled unit. Once the units go to the unit they will return to the base when the unit is killed.If they didn't find any enemy on their route or it if is destroyed and at least one unit survived in the group.
- note
Important: in order to use this native, the native
CreateCaptainsmust be called first or the game will crash. It is already added in the function CampaignAI found atcommon.ai- patch
1.00
- Source
- common.ai (raise an issue to discuss on Github or submit a PR)
- return type
nothing- Source code
native AttackMoveXY takes integer x, integer y returns nothing