--- Pcs p_inside = 0 ------ variable to use in other scripts p_outside = 0 ------ variable to use in other scripts t_stamp_out = 0 t_stamp_in = 0 function player_in_or_out_init(e) end function player_in_or_out_main(e) if t_stamp_out > 0 and t_stamp_in > 0 then if t_stamp_out > t_stamp_in then p_outside = 1 p_inside = 0 Prompt("player is outside") ----- remember to remove this line end if t_stamp_in > t_stamp_out then p_inside = 1 p_outside = 0 Prompt("player is inside") ----- remember to remove this line end end end