spidertron-squad-control/control/entity_follow.lua
2020-11-28 01:37:34 +08:00

11 lines
213 B
Lua

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