[error]Expression : !m_error_code
[error]Function : raii_guard::~raii_guard
[error]File : D:\prog_repository\sources\trunk\xrServerEntities\script_storage.cpp
[error]Line : 748
[error]Description : ... - call of pripyat\gamedata\scripts\xr_danger.script:137: attempt to index field 'actor_active_item' (a nil value)
-- Start [Alundaio]
if not script then
-- Check if actor is the cause of my danger
local actor_silencer = false
local actor_knife = false
if ( best_danger_object:id() == db.actor:id() ) then
if ( bind_stalker.actor_active_item.silencer == true ) then
actor_silencer = true
elseif ( bind_stalker.actor_active_item.type == "knife" ) then
actor_knife = true
end
end
if ( best_danger_object:id() == db.actor:id() ) then
if ( bind_stalker.actor_active_item ~= nil) then
if ( bind_stalker.actor_active_item.silencer == true ) then
actor_silencer = true
elseif ( bind_stalker.actor_active_item.type == "knife" ) then
actor_knife = true
end
end
end
Użytkownicy przeglądający to forum: Brak zarejestrowanych użytkowników oraz 1 gość