GetExpansionPeon
- comment
Returns the peon unit that will start a new expansion for the AI player, however, it will return null if there is no gold mine (excluding a gold mine the AI player already own) found on the map.
- note
Important: in order to use this native,
CreateCaptainsmust be called first or the game will crash. It is already called in the functionCampaignAIfound incommon.ai.- patch
1.00
- Source
- common.ai (raise an issue to discuss on Github or submit a PR)
- return type
unit- Source code
native GetExpansionPeon takes nothing returns unit