Есть маленькая новость!
Сбацал основу для разного научного оборудования - теперь можно и научного оборудования наделать. Много, разного, и нужного... легко!
function check_daily_loadout()
local time = level.get_time_days()*60*24+level.get_time_hours()*60+level.get_time_minutes()
local prev_time = load_variable("check_loadout",false)
if not prev_time then
return
end
if (time - prev_time)>(24*60*60) then
db.actor():disable_info_portion("recieved_daily_loadout")
db.actor:give_game_news("Вам доступно новое пополнение на базе", "ui\\ui_iconsTotal",Frect():set(0,188,83,47), 0, 5000)
end
return
end
function load_variable(name, not_found_value)
return xr_logic.pstor_retrieve(db.actor, name, not_found_value)
end
function save_variable(name, value)
xr_logic.pstor_store(db.actor, name, value)
return
end
if has_alife_info("recieved_daily_loadout") then
check_daily_loadout()
end
local time = level.get_time_days()*60*24+level.get_time_hours()*60+level.get_time_minutes()
xr_logic.pstor_store(db.actor, "check_loadout", time)
Вернуться в Идеи для модов (Ideas for mods)
Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 41