Skip to content

Instantly share code, notes, and snippets.

View space-jam-'s full-sized avatar

Matt Sanders space-jam-

  • Sydney, Australia
View GitHub Profile
--[[ Find a clear space for a unit, depending on its HullSize. (Used to replace FindClearSpaceForUnit)
Author: space jam
Date: 31.07.2015
unit : The handle of the unit you are moving.
vTargetPos : The target Vector you want to move this unit too.
searchLimit : The furthest we should look for a clear space.
initRadius : Must be less than searchLimit, allows us to start further out from the initial vector. Can also be nil to not specify.]
Example 1: The lua segment of a global blink spell. (KV is just a simple point target ability that runs this.)