Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function combat(self)
- function self:SuggestTarget(target)
- if self.target == nil and target ~= nil then
- if target:HasTag("frisk") then
- local equipped = false
- for k, v in pairs(target.components.inventory.equipslots) do
- equipped = true
- end
- if equipped then
- self:SetTarget(target)
- return true
- end
- else
- self:SetTarget(target)
- return true
- end
- end
- end
- end
- AddComponentPostInit("combat", combat)
Advertisement
Add Comment
Please, Sign In to add comment