IsPositionBlocked (Harvest)

From OxeyeWiki

Revision as of 19:22, 2 December 2009 by 166 MMX (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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 whether you can place building at a specific point or not.

Harvest Library

Example

if ~harvest.isPositionBlocked(x, y) then
   harvest.spawnAlien(1, x, y)

Resources

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox