Leader Louis XVI of France

ImageImageTalking about Modding for EE2 and EE2 AOS. New maps, patches, programs and Multiplayer scenarios.
Post Reply
User avatar
Gonzalo
Posts: 252
Joined: 24 Aug 2018, 08:56

Leader Louis XVI of France

Post by Gonzalo »

I can't put this unit on the scenario editor, my code:

Code: Select all

UnitType Louis
{
	Parent = Leader
	Properties {
		mass = 1
		popCount = 1
		displayName = tx_utn_Louis_name
		displayNamePlural = tx_utn_Louis_pname
		rps = Citizen
		SizeX = 0.125
		SizeY = 0.125
		HitPoints = 500
		stance = Cautious
		VerboseTooltip = vtt_unit_Louis
	}
	sounds = {
	}
	abilities [
		Move {speed = 4.5; angSpeed = 720}		
		LOS { range = 10 }
		//Build { repairRate = 12 }
		AreaEffect { effects = [ HighFervor HighMorale Discipline ] }
		SpecialPower { effects = [ FireAndManeuver ] }
	]
	icon = icon_unit_Louis
}
UnitModel Louis
{
	Parent = BaseHuman
	ChildNames 		= [ UnitShadow ThePowerBar ]
	DefaultModel 		= Louis.NIF
	States 			= [
		{	StateName = Idle	AnimName = sh_citizen_idle01.kf	
			AnimVariants = [ sh_citizen_idle04.kf sh_citizen_region01.KF sh_citizen_season01.KF ] AnimVariantsWeights = [ 0.2 0.1 0.1 ]
			}
		{ 	StateName = Walk	AnimName = sh_citizen_walk01.kf	
			}			
		{ 	StateName = Death	AnimName = sh_citizen_death01.KF	}
		//{	StateName = Flinch	AnimName = sh_citizen_protect01.KF	}
		{	StateName = BeingThrown	AnimName = sh_citizen_flying01.KF
			AnimVariants = [ sh_citizen_flying02.KF ] AnimVariantsWeights = [ 0.5 ]	}
		//{	StateName = ThrownDeath	AnimName = sh_citizen_ground_death01.KF	}
			] // end states
	UIRenderingParams {
		xOffset = 0.01
		yOffset = 0.37
		zOffset = -6.83
		scale = 2.43
		angle = 23.68
	}
}


Added after 3 hours 8 minutes 10 seconds:
Problem solved!

User avatar
Dr.MonaLisa
High Representative
Posts: 7957
Joined: 17 Jun 2010, 11:21
Location: Poland

Re: Leader Louis XVI of France

Post by Dr.MonaLisa »

Solution?
Best regards,
Dr.MonaLisa
Ministry of Game Affairs
Department of Control and Complains
User avatar
Gonzalo
Posts: 252
Joined: 24 Aug 2018, 08:56

Re: Leader Louis XVI of France

Post by Gonzalo »

Just copied the code of a very similar unit...
Post Reply

Return to “EE2 files, modding, maps, testing, etc.”