GameObject - TM-Modding-Wiki

GameObject

From TM-Modding-Wiki

Jump to: navigation, search

Contents

GameObjects consists of the GameObject-Tag and various child elements and attributes. Not all attributes and child elements are needed, but some are.

Game Object

Values are default values

<GameObject
id="" Required Sets the objects name for reference in other Assets; must be unique in the mod; String
inheritFrom="" Optional Specifies another GameObject whose settings will be added to the Object; GameObject id
>
<DisplayName /> (Occurrence: max 1) Determines the name displayed ingame
<GameDependency /> (Occurrence: max 1) Determines what prerequisite must be met before construction is possible
<ArmorSet /> (Occurrence: unbounded) Determines the resistance against damage
<WeaponSet /> (Occurrence: unbounded)
<LocomotorSet /> (Occurrence: unbounded) Determines the movement behavior
<Buildable /> (Occurrence: unbounded)
<ThingClass /> (Occurrence: unbounded)
<DeadCollideSize /> (Occurrence: unbounded)
<BuildFadeInOnCreateList /> (Occurrence: unbounded)
<BuildVariations /> (Occurrence: unbounded)
<EquivalentTo /> (Occurrence: unbounded) Sets another Object that is to be treated as the same type ingame
<DisplayColor /> (Occurrence: unbounded)
<Flammability /> (Occurrence: unbounded)
<SkirmishAIInformation /> (Occurrence: max 1) Determines how the AI uses this object


<Draws>
</Draws> (Occurs: unbound)


<Behaviors>
</Behaviors> (Occurs: unbound)


<AI>
</AI> (Occurs: unbound)


<Body>
</Body> (Occurs: 1/unbound)


Example Game Object

languages