Advertisement
Guest User

Untitled

a guest
Apr 16th, 2014
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. -- Function Fixed By 'Vintar' - GSC Forum
  2.  
  3. function kill_name(actor, npc, p)
  4. if p[1] then
  5. local se_obj = alife():object(p[1])
  6. if se_obj then
  7. local obj = level.object_by_id(se_obj.id)
  8. if obj and obj:alive() then
  9. obj:kill(obj)
  10. end
  11. end
  12. end
  13. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement