Game Editor (Workbench) Entity Editing

From Bohemia Interactive Community
Jump to navigation Jump to search

Entity Editing

In basis it is a mainly about manipulation with entities, their properties and their scripts. The main windows when you work with entities are:

  • Entity Manipulation tool
  • Entities
  • Entity Selection

Insert an Entity

There are a three possibilities how to insert entity into to world.

Inserting a basic entity

In Entity List window is a bookmark "Create". There is a list of all entities which can be putted in, it is sorted by their type. To put entity in just use a drag & drop function.

Insert entity from template

Entity from the Template Manager can also inserted by the drag & drop but also with the "T" key ( with the some entity selected in template manager). Your cursor have to be above some geometry to place the entity this way.

Insert entity by paste

You can copy already inserted entity a then than paste it. There two inserting options:

  • Ctrl+V

Entity will be placed on cursor position in the Content Window

  • Ctrl+Q

Entity(es) will be placed on exactly same place as the copied entity(es). You can not see on the firt that the entities are over each other.

Select an Entity

Inserted entities can be selected in Entites List or Content Window (Entity manipulation tool have to be selected). In both types you can select more entities and make a selection. In content window you can click (LMB) with holding the SHIFT key or holding LMB and mouse drag. If you click or drag with shift on already selected entity it will unselect it. Unselect of all entities can be made by doublick.

Focus in selection

In selection is always one entity with focus. This entity is marked by white color (the others are yellow). This entity has different behavoiur in different situations (center of rotation for example ). For the change of the entity with focus you can just click (not with SHIFT) on an other entity in selection.

Entity Manipulation tool

Entities CurrentTool.jpg


Tool Entity.jpg Icon of the tool.
There are two basic modes of manipulation:

  • Ground

The vizualizer show as small blue thing on the pivot of entity. You can catch the entity and move with it and its stays on the ground.

  • Exact

In this mode you can rotate with entity around all axis and change the manipulation tool oriented space (world, entity-local, parent entity ).

Common rotate origin

If checked the entities will rotate around own their z axis. If unchecked the entities will rotate around the z axis of the focused entity (from selection).

Entities as ground

When you placing new entity into the world, with this option checked, the new enitity will be placed on another entity.

Water as ground

Same as entities above.

Place new by bound box

Use bounding box insted collision envelope.

Create new only in selected layer

Obsolete

Snap to grid

Very useful when entity is needed to be seted exactly next to other entity (both entities have to be seted with this option on).

Snap to grid individually

Works only when you have selected more entities. If checked every entity in selection will be placed by the grid, else only the main entity in selection (the one with visualizer ) will by placed on the grid.

Snap in vertical axis

Snaping to the grid can be 3D -> this will enable it.

Lock child offsets

When you moving with entities using ground tool, the parented entities changing offset from the parent ( offset is 3D ) if you don't want this, check this up.

Snap to ground

All selected entities will be placed on the ground (terrain). Doesn't matter if they’re under or above the terrain. The positioing is not made by physics nor bounding boxes. Its just place the pivot of the entity on the ground.

Move physically

The selected entities must be above the terrain, because this option just work like physical fall. And its takes some time before the fallen entities calm down.

Numeric move

(offset) Will move the selected entities for given offset and direction.

Insert with angles

Will insert the entity from entity template manager with randomized angles or with offset.


ShortCuts
Ctrl + A Switch ground a exact mod
Shift + LMB On Vizualizer Rotate with entity
Ctrl + LMB On Vizualizer in ground mode Vertical movement with entity
Ctrl + down arrow Snap entities to the ground
T + mouse cursor above terrain Insert entity into map from template manager

Entities

Entities Create.jpg

In Map

List of all inserted entities in the world (with the world itself). You can sort the entities by Name, template, class, layer or spawnlayer. Context Menu:

Look On
Delete
Rename
Copy
Add Childs To Selection
Edit Scripts

Selected

List of just selected entities
Context Menu:
Same as previous but:

Add Childs To Selection
Edit Scripts
Unselect
Unselect all except this
Get Selected Count

Create

List of all entities which can be placed in the world.
No Context Menu available.
Entities can be placed into the world by drag and drop.

Layers

Every entity can have a layer defined. It can be defined in Entity Template Manager.
Here you can show/hide all entities from each layer.

SpawnLayers

There can be more than one mission on one island and the missions are defined as spawn layers. In spawnLayers you can show/hide each spawnlayer itself. It's good for better overview.

Entity Selection

Entities Properties.jpg

Details of selected entity.

Properties tab:
Basics: Coords, Angle, Angle2, Angle3.
Additional: Specific for each entity type.

Scripts tab: Double Click on Event to Open Game Script Pane and start write script (only named entity can be scripted).