olaf1
Senior Resident
On forum: 01/17/2012
Messages: 240
|
I have make this not more
in the spawn_sections.ltx registered my two npc´s
[esc_stalker_respawn_1_1_kamper]:stalker
$spawn = "respawn\esc_stalker_respawn_1_1_kamper"
character_profile = sim_stalker_novice
spec_rank = regular
community = stalker
custom_data = scripts\esc\stalker_kamper.ltx
[esc_stalker_respawn_1_2_kamper]:stalker
$spawn = "respawn\esc_stalker_respawn_1_2_kamper"
character_profile = sim_stalker_novice
spec_rank = regular
community = stalker
custom_data = scripts\esc\stalker_kamper.ltx
and the logic script
[logic]
active = kamp
[kamp]
center_point = esc_test_stalker_kamp_point
radius = 1
meet = meet
danger = danger_ignore
[danger_ignore]
ignore_distance = 10
[meet]
victim = 15| actor
victim_wpn = 15| actor
use = true
use_wpn = true
abuse = true
and my script
local npc_table = {
"esc_stalker_respawn_1_1_kamper",
"esc_stalker_respawn_1_2_kamper",
}
local npc_data_table = {
esc_stalker_respawn_1_1_kamper = {
timer1 = 3,
timer2 = 6,
death_count = 0,
sections = "esc_stalker_respawn_1_1_kamper",
position = {x = -250.11701965332,y = -19.515562057495,z = -138.84799194336,game_vertex_id = 8,level_vertex_id = 10127},
count = 3,
id = {},
respwanen = true},
esc_stalker_respawn_1_2_kamper = {
timer1 = 3,
timer2 = 6,
death_count = 0,
sections = "esc_stalker_respawn_1_2_kamper",
position = {x = -250.11701965332,y = -19.515562057495,z = -138.84799194336,game_vertex_id = 8,level_vertex_id = 10127},
count = 3,
id = {},
respwanen = true},
}
function read()
local npc = npc_table[math.random(1, 2)]
if npc_data_table[npc] and npc_data_table[npc].respwanen == true then
npc_name = npc_data_table[npc].sections
pos = npc_data_table[npc].position
npc_number = npc_data_table[npc].count
spawnen(npc_name,pos,npc_number)
end
end
function spawnen(npc,pos,count)
if npc and pos and count then
for i = 1,count do
alife():create(npc,vector():set(pos.x, pos.y ,pos.z) ,pos.game_vertex_id ,pos.level_vertex_id)
end
end
end
and in the bind_stalker.script registered my script with
function actor_binder:update(delta)
object_binder.update(self, delta)
respawn_npc.read()
......................................
can you or an other why i get this carsh and this error log?? |