Index

GetNearestSpore

GetNearestSpore(<-worldPosition <-range <-factorAssignedMissiles) ->spore

Description

Finds the nearest spore to the worldPosition, a Vector3, within the spherical range, a float. The factorAssignedMissiles is a boolean that looks at the number of assigned missiles to the spore. If true, and there are enough missiles already in route to the spore to destroy it, the spore will be ignored. The return value is the spore UID, or -1 if no spore is found in range. Note that the range does not affect the performance of this call. All spores are iterated over regardless of the range.

Examples

GetNearestSpore(GetUnitPosition(self) 20 true) ->spore

Index