SKRen

practice

Sep 17th, 2011
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. for i = 1,table.maxn(beings) do
  2. if beings[i] then
  3. OnCreate()
  4. self:add_property("sanity", true)
  5. end
  6. create_seq_function(being_prototype.OnAction, function(self)
  7. if self:is_visible()
  8. then player.sanity= player.sanity - 5, self.sanity=false
  9. end
  10. )
  11. end
  12. end
Advertisement
Add Comment
Please, Sign In to add comment