This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--[[ 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.) |