[Thing Template=AAUnitGERProne]
{
	IDS = gerit_engineer
	name = "#gerit_engineer_name"
	editor_name = "#gerit_engineer_editor_name"
	
	[View]
	{
		resource_prefix = GERitEngineer/RUSEngineer
		
		[WhenCreated Template=FXC_Equipment]
		{
			action = HIDE
			location = rhand
			equipment_type_ids = hammer
		}

		[WhenCreated Template=FXC_Equipment]
		action = UNHIDE
		location = rhand
		equipment_type_ids = rifle
	}
		
	[BodyComponent]
	health = 50
	defense = 1
	
	[BuilderComponent]
	{
		[BuildActor]
		actor_ids = gerit_bunker
		
		[BuildActor]
		actor_ids = gerit_bunker_aa
		
		[BuildActor]
		actor_ids = gerit_bunker_artillery

		[BuildActor]
		actor_ids = gerit_bunker_atg
		
	}

	[CharacterComponent Template=AAEngineerCharacterComponent]

	[ElementComponent]
	required_structures = ger_brigade_engineer

	[MoverComponent]
	speed_max = 1
		
	[PropertiesComponent]
	{
		[Property]
		property_IDS = front
		
		[Property]
		property_IDS = engineer			
	}
	
	[PerformerComponent]
	{
		[Ability Template=AAGunLocal]
		{
			[AbilityDefinition Template=AAInfantryRifle]
			{				
				name = "#gerit_engineer_AbilityDefinition_name"
				recharge_time = 3
				range = 4
				
				[Effect Template=PierceDamageEffect]
				amount = 10

				[WhenDo template=FXC_PlaySFX]
				audio_ids = jpn_rifle
			}
		}
		
		[Ability Template=AARepairLocal]
		{			
			animation1 = build1
			
			[AbilityDefinition Template=AARepairAction]
			{
				[Effect Template=RepairEffect]
				amount = 5
			}
		}
		
		[Ability Template=AAConstructLocal]
		{
			animation1 = build1
			
			[AbilityDefinition Template=AAConstructAction]
			{
				[Effect Template=RepairEffect]
				amount = 5
			}
		}
	}
}