Advertisement
Guest User

Untitled

a guest
Dec 8th, 2016
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. local CharacterSpecific = Class(function(self, inst)
  2. self.inst = inst
  3.  
  4. self.character = nil
  5. self.storable = false
  6. self.comment = "That does not belong to me."
  7. end)
  8.  
  9. function CharacterSpecific:CanPickUp(doer)
  10. if doer and doer.prefab ~= self.character then
  11. return false
  12. end
  13.  
  14. return true
  15. end
  16.  
  17. function CharacterSpecific:SetOwner(name)
  18. self.character = name
  19. end
  20.  
  21. function CharacterSpecific:IsStorable()
  22. return self.storable
  23. end
  24.  
  25. function CharacterSpecific:SetStorable(value)
  26. self.storable = value
  27. end
  28.  
  29. function CharacterSpecific:GetComment()
  30. return self.comment
  31. end
  32.  
  33. function CharacterSpecific:SetComment(comment)
  34. self.comment = comment
  35. end
  36.  
  37. return CharacterSpecific
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement