1
0
forked from 0ad/0ad
0ad/binaries/data/mods/official/entities/template_entity.xml
Matei bc3949db1a Added a fairly primitive water plane. This includes several things:
- Hotkeys Q, A, Z to toggle, raise and lower the water plane
respectively.
- A unit trait, named anchor, that says whether it attaches to the
terrain or the water.
- Small changes to rendering code.

This was SVN commit r2744.
2005-09-18 03:16:12 +00:00

45 lines
898 B
XML
Executable File

<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<Entity>
<Traits extant="true" corpse="template_corpse">
<Id
/>
<!-- Defaults to no armour -->
<Armour
Value="0"
Crush="0.0"
Hack="0.0"
Pierce="0.0"
/>
<Health
bar_height="-1.0"
/>
<Up
rank="0"
/>
<Creation>
<Time>20</Time>
<Resource>
<Food cost="4" />
<Wood cost="3" />
<Stone cost="2" />
</Resource>
</Creation>
<MiniMap
type="Unit"
/>
<Anchor
type="Ground"
/>
</Traits>
<Script File="entities/template_entity_script.js" />
<Event On="Attack" Function="entity_event_attack" />
<Event On="Gather" Function="entity_event_gather" />
<Event On="TakesDamage" Function="entity_event_takesdamage" />
<Event On="TargetChanged" Function="entity_event_targetchanged" />
<Event On="PrepareOrder" Function="entity_event_prepareorder" />
<Actions />
</Entity>