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

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

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

Перейти к: навигация, поиск
(<<< aka_sektor)
 
(не показаны 2 промежуточных версий 1 участника)
Строка 2: Строка 2:
 
<lua>
 
<lua>
 
function delete_deadzone()
 
function delete_deadzone()
         local obj = alife():object("aes_space_restrictor_death_0000")
+
         local obj = alife():object("aes2_space_restrictor_death_0000")
 
         if obj then
 
         if obj then
 
         alife():release(obj, true)
 
         alife():release(obj, true)
 
         end
 
         end
         local obj1 = alife():object("aes_space_restrictor_death_0001")
+
         local obj1 = alife():object("aes2_space_restrictor_death_0001")
 
         if obj then
 
         if obj then
 
         alife():release(obj1, true)
 
         alife():release(obj1, true)
 
         end
 
         end
         local obj2 = alife():object("aes_space_restrictor_death_0002")
+
         local obj2 = alife():object("aes2_space_restrictor_death_0002")
 
         if obj then
 
         if obj then
 
         alife():release(obj2, true)
 
         alife():release(obj2, true)
 
         end
 
         end
         local obj3 = alife():object("aes_space_restrictor_death_0003")
+
         local obj3 = alife():object("aes2_space_restrictor_death_0003")
 
         if obj then
 
         if obj then
 
         alife():release(obj3, true)
 
         alife():release(obj3, true)
 
         end
 
         end
         local obj4 = alife():object("aes_space_restrictor_death_0004")
+
         local obj4 = alife():object("aes2_space_restrictor_death_0004")
 
         if obj then
 
         if obj then
 
         alife():release(obj4, true)
 
         alife():release(obj4, true)
 
         end
 
         end
         local obj5 = alife():object("aes_space_restrictor_death_0005")
+
         local obj5 = alife():object("aes2_space_restrictor_death_0005")
 
         if obj then
 
         if obj then
 
         alife():release(obj5, true)
 
         alife():release(obj5, true)
 
         end
 
         end
 
         local se_obj = alife():object("aes_space_restrictor_timer")  -- выбираем основной рестриктор таймера
 
         local se_obj = alife():object("aes_space_restrictor_timer")  -- выбираем основной рестриктор таймера
         if obj then
+
         if se_obj then
         alife():release(obj, true)  -- удаляем выбранное
+
         alife():release(se_obj, true)  -- удаляем выбранное
 
         end
 
         end
 
         local se_obj1 = alife():object("aes_space_restrictor_timer_go")  -- выбираем рестриктор, запускающий основной рестриктор
 
         local se_obj1 = alife():object("aes_space_restrictor_timer_go")  -- выбираем рестриктор, запускающий основной рестриктор
         if obj then
+
         if se_obj1 then
         alife():release(obj1, true)  -- удаляем выбранное
+
         alife():release(se_obj1, true)  -- удаляем выбранное
 
         end
 
         end
 
end
 
end
Строка 41: Строка 41:
 
</code>
 
</code>
 
Отключит смертельные зоны на АЭС2 и таймер на АЭС1.
 
Отключит смертельные зоны на АЭС2 и таймер на АЭС1.
 +
[[Категория:Неоформленные статьи]]

Текущая версия на 00:06, 20 марта 2014

Создаем файл 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