SoC. Отключаем таймер на АЭС1 и смертельные зоны на АЭС2 — S.T.A.L.K.E.R. Inside Wiki

SoC. Отключаем таймер на АЭС1 и смертельные зоны на АЭС2

Материал из S.T.A.L.K.E.R. Inside Wiki

Перейти к: навигация, поиск

Создаем файл aes_control.script в папке gamedata/scripts

 
function delete_deadzone()
        local obj = alife():object("aes2_space_restrictor_death_0000")
        if obj then
        alife():release(obj, true)
        end
        local obj1 = alife():object("aes2_space_restrictor_death_0001")
        if obj then
        alife():release(obj1, true)
        end
        local obj2 = alife():object("aes2_space_restrictor_death_0002")
        if obj then
        alife():release(obj2, true)
        end
        local obj3 = alife():object("aes2_space_restrictor_death_0003")
        if obj then
        alife():release(obj3, true)
        end
        local obj4 = alife():object("aes2_space_restrictor_death_0004")
        if obj then
        alife():release(obj4, true)
        end
        local obj5 = alife():object("aes2_space_restrictor_death_0005")
        if obj then
        alife():release(obj5, true)
        end
        local se_obj = alife():object("aes_space_restrictor_timer")  -- выбираем основной рестриктор таймера
        if se_obj then
        alife():release(se_obj, true)  -- удаляем выбранное
        end
        local se_obj1 = alife():object("aes_space_restrictor_timer_go")  -- выбираем рестриктор, запускающий основной рестриктор
        if se_obj1 then
        alife():release(se_obj1, true)  -- удаляем выбранное
        end
end
 

Теперь куда-нибудь в диалоги вставляем:

<action>aes_control.delete_deadzone</action>

Отключит смертельные зоны на АЭС2 и таймер на АЭС1.

Другие места
LANGUAGE