function chktime( clktime )
local level = level.name()
if clktime == true then
if level == "l01_escape" then
<spawn code here>
return true
end
end
return true
end
My other question is about spawns and respawns in all.spawn. If I was to set up spawns and respawns as follows, would it work? For example, I want to spawn 3 zombies, I put in the spawn code for a zombie, then use respawn code to spawn 3 zombies.
[873]
; cse_abstract properties
section_name = zombie_normal
name = esc_zombie
position = -166.77, -18.39, -128.83
direction = 0,0,0
; cse_alife_object properties
game_vertex_id = 138
distance = 5
level_vertex_id = 524001
object_flags = 0xffffffbf
custom_data = <<END
[smart_terrains]
esc_small_home3 = false
END
; cse_visual properties
visual_name = monsters\zombi\zombi_1
; cse_alife_creature_abstract properties
g_team = 0
g_squad = 1
g_group = 22
health = 1
dynamic_out_restrictions =
dynamic_in_restrictions =
upd:health = 1
upd:timestamp = 0
upd:creature_flags = 0
upd:position = -166.77, -18.39, -128.83
upd:o_model = 0
upd:o_torso = 0,0,0
upd:g_team = 0
upd:g_squad = 1
upd:g_group = 22
; cse_alife_monster_abstract properties
upd:next_game_vertex_id = 65535
upd:prev_game_vertex_id = 65535
upd:distance_from_point = 0
upd:distance_to_point = 0
; cse_ph_skeleton properties
; cse_alife_monster_base properties
; se_monster properties
[874]
; cse_abstract properties
section_name = respawn
name = esc_zombie
position = -166.77, -18.39, -128.83
direction = 0,0,0
; cse_alife_object properties
game_vertex_id = 167
distance = 4.90000009536743
level_vertex_id = 109559
object_flags = 0xffffff3e
custom_data = <<END
[respawn]
respawn_section = zombie_normal,3
;max_count = 8
;min_count = 3
max_spawn = 3
idle_spawn = medium
;conditions = {+agroprom_military_case_done} 80, 0
END
; cse_shape properties
shapes = shape0
shape0:type = sphere
shape0:offset = 0,0,0
shape0:radius = 1
; cse_alife_space_restrictor properties
restrictor_type = 0
; se_respawn properties
Just want to check before I go doing this for all the extra mutants I'm adding
