local s=nil local d=nil local h=nil local F=0 local o=0 local A=nil local M=nil local k=false local b=0
-- Target finding state
local target = nil
local newTarget = nil
local newTargetDistance = nil
local searchIndex = 0
local timeSearchEnded = 0
local searchRegion = nil
local searchParts = nil
local movingToAttack = false
local lastAttackTime = 0
