IsPositionBlocked (Harvest)
From OxeyeWiki
(Difference between revisions)
				
																
				
				
								
				166 MMX  (Talk | contribs)
(Created page with '{{HarvestMethod | isPositionBlocked(x, y) | Checks if a world position blocks aliens and buildings. Currently only used for the holes on Ares. | {{MethodParam|x|Number|The x coor...')
Newer edit →
(Created page with '{{HarvestMethod | isPositionBlocked(x, y) | Checks if a world position blocks aliens and buildings. Currently only used for the holes on Ares. | {{MethodParam|x|Number|The x coor...')
Newer edit →
Revision as of 19:15, 2 December 2009
| 
 isPositionBlocked(x, y)  | ||
| 
 Checks if a world position blocks aliens and buildings. Currently only used for the holes on Ares.  | ||
| Parameter | Expected Type | Description | 
| x | Number | The x coordinate on the world map. | 
| y | Number | The y coordinate on the world map. | 
| Returns | ||
| 
 Returns a Boolean value weather the alien is available or not.  | ||
Example
if ~harvest.isPositionBlocked(x, y) then harvest.spawnAlien(1, x, y)