Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local CharacterSpecific = Class(function(self, inst)
- self.inst = inst
- self.character = nil
- self.storable = false
- self.comment = "That does not belong to me."
- end)
- function CharacterSpecific:CanPickUp(doer)
- if doer and doer.prefab ~= self.character then
- return false
- end
- return true
- end
- function CharacterSpecific:SetOwner(name)
- self.character = name
- end
- function CharacterSpecific:IsStorable()
- return self.storable
- end
- function CharacterSpecific:SetStorable(value)
- self.storable = value
- end
- function CharacterSpecific:GetComment()
- return self.comment
- end
- function CharacterSpecific:SetComment(comment)
- self.comment = comment
- end
- return CharacterSpecific
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement