Advertisement
Daemonion

weapon perspective: on item take

Mar 25th, 2014
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.66 KB | None | 0 0
  1.     if (isWeapon(obj)) then
  2.         local sec = obj:section()
  3.         local ini = system_ini()
  4.        
  5.         --[[ignore this chunk - it was for testing infoportions
  6.         -- Check system ini if section with the postfix "_actor" exists
  7.         -- if has_alife_info("interior_whitenoise_playing") then
  8.             -- if (ini:section_exist(sec.."_actor_indoors")) then
  9.                 -- alife():release( alife():object(obj:id()),true )
  10.                 -- alife():create(sec.."_actor_indoors",db.actor:position(),0,0,0)
  11.             -- end
  12.         -- else
  13.         --]]
  14.  
  15.         if (ini:section_exist(sec.."_actor")) then
  16.             alife():release( alife():object(obj:id()),true )
  17.             alife():create(sec.."_actor",db.actor:position(),0,0,0)
  18.             -- end
  19.         end
  20.     end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement