I need kill some critter in an hour when hero visit this map first. If i set in pipboy 1 hour at map where is critter placed it is OK, BUT if i go to another map and set in pipboy 1 hour and return at map where is my critter placed - he isnt killed. WHY ?
---------------------------------------------------------------------------------
Code:
procedure map_enter_p_proc begin
set_local_var(LVAR_Test11 ,game_time + ONE_GAME_HOUR);
reg_anim_clear( self_obj );
reg_anim_begin();
reg_anim_animate(self_obj,ANIM_fall_back_sf,-1);
reg_anim_end();
end
Code:
procedure map_update_p_proc begin
if (local_var(LVAR_Test11) < game_time) then begin
kill_critter(self_obj,ANIM_fall_back_sf);
end
end