"HUMAN_LIGHT_GEN_HELP_TROOP"
{
	// help troop task ignore all the enemy and go straight to the troop to reinforce it

	INT my_unit_recno 
	my_unit_recno = FUNC("get_character_recno") 

	INT random_number 
	INT enemy_item_recno 
	INT helped_unit_recno 

	helped_unit_recno = FUNC("get_curr_task_para", my_unit_recno , 1) 

	// search for gate to open
	enemy_item_recno = FUNC("search_for_item", my_unit_recno , "FG" , 500, 0) 

	if( enemy_item_recno )
	{
		ACTION("give_order" , my_unit_recno, "GATE_OPEN" , 2 , 0 , enemy_item_recno , 1 , 0 , 0, 1500) 
	}

	INT unit_dist 
	
	unit_dist = FUNC("get_unit_dist", my_unit_recno, helped_unit_recno) 

	if( unit_dist < 300 )
	{
		FUNC( "stop_curr_task" , my_unit_recno )
		exit
	}

	if( unit_dist >= 300 ) // didn't reach the being helped unit
	{
		ACTION("give_order" , my_unit_recno, "APPROACH_ENEMY" , 1 , 1 , helped_unit_recno, 100 , 200 , 0, 30000)
	}

}
