--HOW TO APPLY
--[[
*In actor_binder():net_destroy()*
self.object:set_callback(callback.use_object, nil)
*In actor_binder():reinit()*
self.object:set_callback(callback.use_object, self.use_object, self)
*Somewhere in the script*
function actor_binder:use_object(obj)
lurk_inv_effects.start(obj)
end
lurk_inv_effects.weapontimer()
function actor_binder:on_item_drop (obj)
level_tasks.proceed(self.object)
--game_stats.update_drop_item (obj, self.object)
--lurk_inv_space.start(obj)
end
----------------------------------------------------------------------------------------------------------------------
function actor_binder:use_object(obj)
lurk_inv_effects.start(obj)
end
--lurk_inv_space.start(obj)
end
----------------------------------------------------------------------------------------------------------------------
--lurk_inv_space.start(obj)
end
[error]Arguments : LUA error: ...adow of chernobyl\gamedata\scripts\new_dialog.script:114: attempt to index local 'actor' (a nil value)
db.storage[npc_id] = { }
Użytkownicy przeglądający to forum: Brak zarejestrowanych użytkowników oraz 0 gości