SKRen

Untitled

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