SKRen

Practice

Sep 17th, 2011
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. for i = 1,table.maxn(beings) do
  2. if beings[i] then
  3. create_seq_function(being_prototype.OnCreate, function(self)
  4. self:add_property("sanity", true)
  5. )
  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.  
  12. end
  13. end
Advertisement
Add Comment
Please, Sign In to add comment