Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (isWeapon(obj)) then
- local sec = obj:section()
- local ini = system_ini()
- --[[ignore this chunk - it was for testing infoportions
- -- Check system ini if section with the postfix "_actor" exists
- -- if has_alife_info("interior_whitenoise_playing") then
- -- if (ini:section_exist(sec.."_actor_indoors")) then
- -- alife():release( alife():object(obj:id()),true )
- -- alife():create(sec.."_actor_indoors",db.actor:position(),0,0,0)
- -- end
- -- else
- --]]
- if (ini:section_exist(sec.."_actor")) then
- alife():release( alife():object(obj:id()),true )
- alife():create(sec.."_actor",db.actor:position(),0,0,0)
- -- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement