Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function actor_binder:on_item_take (obj)
- level_tasks.proceed(self.object)
- -- weapon perspective audio ----
- if (isWeapon(obj)) then
- local sec = obj:section()
- local ini = system_ini()
- -- 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
- ---- weapon perspective audio --]]--
Advertisement
Add Comment
Please, Sign In to add comment