IsAlienAvailable (Harvest)
From OxeyeWiki
(Difference between revisions)
(Created page with '{{HarvestMethod | isAlienAvailable(alien) | Checks whether a certian alien type is available on the current planet. The alien variable is a number between 1 and 9. | {{MethodPara...') |
|||
| Line 7: | Line 7: | ||
{{MethodParam|alien|Number|The alien id.}} | {{MethodParam|alien|Number|The alien id.}} | ||
| | | | ||
| - | Returns a | + | Returns a boolean value whether the alien is available or not. |
}} | }} | ||
=== Example === | === Example === | ||
Revision as of 19:22, 2 December 2009
|
isAlienAvailable(alien) | ||
|
Checks whether a certian alien type is available on the current planet. The alien variable is a number between 1 and 9. | ||
| Parameter | Expected Type | Description |
| alien | Number | The alien id. |
| Returns | ||
|
Returns a boolean value whether the alien is available or not. | ||
Example
if harvest.isAlienAvailable(4) then
print("Summoners occur on this planet.")
end