Advertisement
Guest User

Untitled

a guest
Jun 29th, 2016
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. function ENT:createFood()
  2. activator = self.user
  3. self.Once = false
  4. local foodPos = self:GetPos()
  5. food = ents.Create("food")
  6. food:SetPos(Vector(foodPos.x,foodPos.y,foodPos.z + 23))
  7. food:Setowning_ent(activator)
  8. food.ShareGravgun = true
  9. food.nodupe = true
  10. food:Spawn()
  11. if not activator.maxFoods then
  12. activator.maxFoods = 0
  13. end
  14. activator.maxFoods = activator.maxFoods + 1
  15. self.sparking = false
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement