Чтобы увеличить время отображения сообщения об уровне радиации при использовании дозиметра, вам нужно изменить параметры в вашем скрипте. Вот пример того, как это можно сделать:
1. Найдите или добавьте функцию, которая управляется вызовом при активации дозиметра.
2. Добавьте таймер или задержку перед удалением сообщения из HUD.
3. Пример изменений в вашем коде:
```lua
function radiacion_izmer_1_use ( s_obj )
spawn_radiacion_izmer ( "radiacion_izmer_1" )
if db.actor.radiation == 0 then
local hud = get_hud()
local custom_static = hud:GetCustomStatic( "cs_radiation_izmer" )
if custom_static == nil then
hud:AddCustomStatic( "cs_radiation_izmer", true )
end
hud:GetCustomStatic( "cs_radiacion_izmer" ):wnd():TextControl():SetTextST( "st_radiacion_none" )
elseif db.actor.radiation ~= 0 then
local custom_static = hud:GetCustomStatic( "cs_radiacion_izmer" )
if custom_static == nil then
hud:AddCustomStatic( "cs_radiacion_izmer", true )
wait(5) -- Добавленная задержка
hud:GetCustomStatic( "cs_radiacion_izmer" ):wnd():TextControl():SetTextST( "st_radiacion_yea" )
else
hud:GetCustomStatic( "cs_radiacion_izmer" ):wnd():TextControl():SetTextST( "st_radiacion_yea" )
end
else
local hud = get_hud()
local custom_static = hud:GetCustomStatic( "cs_radiacion_izmer" )
if custom_static ~= nil then
wait(5) -- Добавленная задержка
hud:RemoveCustomStatic( "cs_radiacion_izmer" )
end
end
end```
4. Убедитесь, что функция вызывается при активации дозиметра.