"HUMAN_LIGHT_INF_SITTING_CAMP"
{
	INT my_unit_recno 
	INT random_number 
	INT enemy_recno 
	INT is_getting_weapon
	INT dist_to_weapon_a
	INT camp_place_recno 

	my_unit_recno = FUNC("get_character_recno") 
	is_getting_weapon = FUNC("is_getting_weapon", my_unit_recno)
	camp_place_recno = FUNC("search_place_by_name", "English Camp") 

	if(is_getting_weapon)
	{
		// distance to weapon site a and site b
		dist_to_weapon_a = FUNC("get_distance", my_unit_recno, 23832, 6995, -90 )

		// get weapon	
		if(dist_to_weapon_a < 80 )
		{
			ACTION("give_order" , my_unit_recno , "SPECIAL_MOVEMENT" , 7 , 0 , 5 , 0 , 1, 0, 10000)
			FUNC("set_getting_weapon_flag", my_unit_recno, 0)		
			FUNC("get_default_weapon" , my_unit_recno) 	
			FUNC("stop_curr_task" , my_unit_recno) 	
//			ACTION("give_task", my_unit_recno, "DEFEND_PLACE", 1, camp_place_recno, 0, 0, 0)
			exit
		}

		// run get weapon
		ACTION("give_order", my_unit_recno, "MOVE_TO_TARGET", 3, 0, 23832, 6995, -90, 0, 10000)	
		exit
	}	

	if( FUNC("get_scenario_bit_flag", 1) || FUNC("get_scenario_bit_flag", 2) )
	{
		// stop all current order first
		ACTION("stop_all_order", my_unit_recno) 

		// give order
		ACTION("give_order" , my_unit_recno , "SPECIAL_MOVEMENT" , 3 , 0 , 6 , 0 , 1, 0, 10000)
		FUNC("set_getting_weapon_flag", my_unit_recno, 1)		
		exit		
	}

	random_number = FUNC("random_number" , 4)

	if ( random_number == 0 || random_number == 1 || random_number == 2)	// 2/3 set stand idle a
	{
		ACTION("give_order" , my_unit_recno , "SPECIAL_MOVEMENT" , 1 , 0 , 8 , 0 , 1, 0, 5000)
	}

	if ( random_number == 2 )		// 1/3 set stand idle b
	{
		ACTION("give_order" , my_unit_recno , "SPECIAL_MOVEMENT" , 2 , 0 , 9 , 0 , 1, 0, 8000)
	}

}
