(try_for_agents, ":agent_no"),
(agent_is_human, ":agent_no"),
(agent_is_alive, ":agent_no"),
(agent_get_position,pos0,":agent_no"),
(scene_prop_get_num_instances, ":num_instances_of_scene_prop", "spr_water_river"),
(try_for_range, ":cur_instance", 0, ":num_instances_of_scene_prop"),
(scene_prop_get_instance, ":cur_instance_id", "spr_water_river", ":cur_instance"),
(prop_instance_get_position, pos1, ":cur_instance_id"),
(get_distance_between_positions_in_meters, ":dist", pos0, pos1),
(try_begin),
(lt, ":dist", 1),
(agent_set_speed_limit, ":agent_no", 0),
(agent_set_animation, ":agent_no", "anim_cheer_stand"),
(store_agent_hit_points,":agent_XP",":agent_no",1),
(val_sub, ":agent_XP", 5),
(agent_set_hit_points,":agent_no",":agent_XP",1),
(else_try),
(lt, ":dist", 5),
(agent_get_animation, ":agent_animation", ":agent_no"),
(neq, ":agent_animation", "anim_cheer_stand"),
(agent_set_speed_limit, ":agent_no", 1),
(else_try),
(agent_get_animation, ":agent_animation", ":agent_no"),
(neq, ":agent_animation", "anim_cheer_stand"),
(agent_set_speed_limit, ":agent_no", 12),
(try_end),
(try_end),
(try_end),
Извиняюсь за ответ не в теме.