An Archetype Entity is based on a regular Entity and specifies individual parameter values for that Entity. If the value of an Archetype parameter is changed, all instances of that Archetype in the scene will be updated automatically.
Archetype Entities are organized in libraries which can be created in The DataBase View.
So technical level designers can predefine variations of Entity classes as Archetype Entities that can be used throughout the whole game. For global changes affecting all instances, the Archetype Entity just needs to be changed once in the Database View.
Archetype Entities can be accessed by using RollUpBar -> Objects -> Archetype Entity or alternatively, they can be dragged directly from the DataBase View.
The browser window in the RollUpBar shows all the Archetype Entity libraries that are currently loaded for the level.
Navigate these libraries by clicking once. Drag the individual Archetype Entities to the level to place them.
This filter specifies a search string for the currently loaded Archetype library. All libraries containing Archetype Entities appropriate for the search string will be shown upon pressing the Reload button. Also, the Reload button can be used to update any recently altered archetype library files.
Once you have placed an Archetype Entity in the level, select it to view its properties.
EntityArchetype Params are a basic set of parameters shared by all Archetype Entities.
Parameter | Description |
---|---|
Outdoor Only | When set, the object will not be rendered when inside a visarea. |
Cast Shadow | When set, the object will cast a shadow. |
LodRatio | Defines how far from the current camera position, the different Level Of Detail models for the object are used. |
ViewDistRatio | Defines how far from the current camera position, the the object can be seen. |
HiddenInGame | When set, this object is not shown in the pure game mode. |
Receive Wind | When set, this object will be influenced by any wind setup in the level. |
RenderNearest | |
NoStaticDecals | |
Created Through Pool |
Below is an example of the EntityArchetype Properties2 dialog box. This dialog box contains a selection of properties from the Entity type, allowing you to edit the Archetype Entities on a case by case basis.
The example below shows the properties2 set for an AI entity:
Archetype Entity Libraries can be created and configured in the The DataBase View.
Every highlighted property in the database view has actually a different value than the script default.
To revert the Archetype setting back to the actual script default value you can right click on a property and choose Revert to Script Default.
It is possible to check the default value in the entities script by hovering over the property.
Action | Description |
---|---|
Load Library | Allows the loading of an XML library file; the default path is |
Save Modified Library | Saves the Archetype library; when the level is saved, the Archetype library will also be automatically saved. |
Add Library | Creates a new library. |
Remove Library | Removes the currently selected library from the level; you need to manually delete it from the hard drive if you want to permanently remove it. |
Library Drop-Down List | Lets you access all the loaded libraries in the level. |
Reload Library | Discards all the changes made to the library and reloads the library from the HDD. |
Action | Description |
---|---|
Add New Item | Creates a new archetype object, based on a selectable entity class script; you need to define a Group (folder) and a Name. |
Clone Library Item | Duplicates the selected Archetype entity; uses the same name and adds a number to it. |
Remove Item | Deletes the selected archetype object. |
Assign Item to Selected Objects | Assigns the selected Archetype entity to the currently selected Archetype entity in the Perspective view. |
Reload Item | Resets the scene Archetype entities of this type. |
Get Material from Selection | Assigns the material from the currently selected item. |
Action | Description |
---|---|
Undo | Undoes the last action - set the number in Tools > Preferences. |
Redo | Redoes the last action - set the number in Tools > Preferences. |
Copy Item | Copies the XML script of the current item to the clipboard. |
Paste Item | Pastes the item from the clipboard. |
The library lister organizes all the Archetype entities of the currently selected library, by group; browse through the groups in a similar manner to as is done in the standard Windows Explorer.
The Class Properties window displays all the values that are defined in the entity scripts.
These scripts are created by programmers.
The window holds general object parameters, which exist in all the Archetype entities. They are independent of the separate entity scripts.
This option shows the selected Archetype entity in a special, perspective, model preview window.
Mouse Control | Function |
---|---|
Click | Rotates the view. |
Right-click | Zooms the view. |