Function inputs should be "vecEndPosition" and "nBlinkRange", you can drop position and add the line "local vecCurrentPosition = core.unitSelf:GetPosition()"