spidertron-squad-control/control/entity_follow.lua

11 lines
213 B
Lua
Raw Normal View History

require("control.2dvec")
function UpdateFollowEntity()
local links = global.spidercontrol_linked_s
for i = 1, #links do
if (#links[i].s > 0) then
GotoEntity(i)
end
end
end