Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function wpn_take()
- level_tasks.proceed(self.object)
- if (isWeapon(obj)) then
- local sec = obj:section()
- local ini = system_ini()
- -- Check system ini if section with the postfix "_actor" exists
- 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
- function wpn_drop()
- level_tasks.proceed(self.object)
- if (isWeapon(obj) and string.find(obj:section(),"_actor")) then
- local sec = string.gsub(obj:section(),"_actor","")
- alife():release( alife():object(obj:id()),true )
- alife():create(sec,db.actor:position(),db.actor:level_vertex_id(),db.actor:game_vertex_id())
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement