Changes

Jump to navigation Jump to search

Documentation/Engine/Units

184 bytes removed, 09:37, 15 January 2016
no edit summary
* Name - units can be nameless or have some specified name. Unit names are divided into components which are 12-char tokens separated by dot - for example correct unit name will be <code>vehicle.dummy.truck</code> incorrect will be <code>vehicledummytruck</code> however in most cases you should not use them, in case some mod is using name <code>vehicle.dummy.truck</code> and you will also use this your mod will fail to load. To create nameless unit simply use dot as the prefix for your unit name for example <code>.my_mod.nameless.units</code>
* Attributes - attributes are set of the data that unit can store, it can be number, text, other unit connection, set of them etc. Some units are failing in case they contain serialized some attribute that is no longer supported however some of them have special flag in the engine to allow loading not allowed attributes.
== SII files ==
<pre>}</pre>
 It's always good to add one blank line at the end of the file.
=== Unit definition entry ===
=== Includes ===
You can also include other files into another. To do this you need to use SII preprocessor directives directive - <code>@include</code>.
'''Example:'''
developer
1,626
edits

Navigation menu