Code
[Ваш номер секции]
; cse_abstract properties
section_name = space_restrictor
name = название места для сна
position=155.8231048584,-6.5563974380493,-138.71978759766
direction = 0,0,0
version = 0x7c
script_version = 8
; cse_alife_object properties
level_vertex_id=1233171
game_vertex_id=13
distance = 9.09999942779541
object_flags = 0xffffff2e
custom_data = <<END
[story_object]
story_id =название места для сна_id
[logic]
cfg = scripts\sr_sleep.ltx
END
; cse_shape properties
shapes = shape0
shape0:type = box
shape0:axis_x = 5.02119588851929,0,0
shape0:axis_y = 0,5.0482006072998,0
shape0:axis_z = 0,0,2.23479747772217
shape0:offset = 0,0,0
; cse_alife_space_restrictor properties
restrictor_type = 3
; cse_abstract properties
section_name = space_restrictor
name = название места для сна
position=155.8231048584,-6.5563974380493,-138.71978759766
direction = 0,0,0
version = 0x7c
script_version = 8
; cse_alife_object properties
level_vertex_id=1233171
game_vertex_id=13
distance = 9.09999942779541
object_flags = 0xffffff2e
custom_data = <<END
[story_object]
story_id =название места для сна_id
[logic]
cfg = scripts\sr_sleep.ltx
END
; cse_shape properties
shapes = shape0
shape0:type = box
shape0:axis_x = 5.02119588851929,0,0
shape0:axis_y = 0,5.0482006072998,0
shape0:axis_z = 0,0,2.23479747772217
shape0:offset = 0,0,0
; cse_alife_space_restrictor properties
restrictor_type = 3
Code
local sleep_zones_tbl =
{
{target = "zat_a2_sr_sleep_id", hint = "st_ui_pda_sleep_place"},
{target = "jup_a6_sr_sleep_id", hint = "st_ui_pda_sleep_place"},
{target = "pri_a16_sr_sleep_id", hint = "st_ui_pda_sleep_place"},
}
{
{target = "zat_a2_sr_sleep_id", hint = "st_ui_pda_sleep_place"},
{target = "jup_a6_sr_sleep_id", hint = "st_ui_pda_sleep_place"},
{target = "pri_a16_sr_sleep_id", hint = "st_ui_pda_sleep_place"},
}
и заменяем их на:
Code
local sleep_zones_tbl =
{
{target = "zat_a2_sr_sleep_id", hint = "st_ui_pda_sleep_place"},
{target = "jup_a6_sr_sleep_id", hint = "st_ui_pda_sleep_place"},
{target = "pri_a16_sr_sleep_id", hint = "st_ui_pda_sleep_place"},
{target = "название места для сна_id", hint = "st_ui_pda_sleep_place"},
}
{
{target = "zat_a2_sr_sleep_id", hint = "st_ui_pda_sleep_place"},
{target = "jup_a6_sr_sleep_id", hint = "st_ui_pda_sleep_place"},
{target = "pri_a16_sr_sleep_id", hint = "st_ui_pda_sleep_place"},
{target = "название места для сна_id", hint = "st_ui_pda_sleep_place"},
}
Code
function sleep(actor, npc)
local sleep_zones = {
"zat_a2_sr_sleep",
"jup_a6_sr_sleep",
"pri_a16_sr_sleep",
"actor_surge_hide_2"
}
local sleep_zones = {
"zat_a2_sr_sleep",
"jup_a6_sr_sleep",
"pri_a16_sr_sleep",
"actor_surge_hide_2"
}
и снова заменяем их на:
Code
function sleep(actor, npc)
local sleep_zones = {
"название места для сна",
"zat_a2_sr_sleep",
"jup_a6_sr_sleep",
"pri_a16_sr_sleep",
"actor_surge_hide_2"
}
local sleep_zones = {
"название места для сна",
"zat_a2_sr_sleep",
"jup_a6_sr_sleep",
"pri_a16_sr_sleep",
"actor_surge_hide_2"
}