Logic objects
The Logic tool
→ Logic from the toolbar and pick a mode in the context bar or the panel
| Button | Action |
|---|---|
| Select | Selects an object. Double opens its logic |
| Volume | Places a Volume. a corner, the far corner, then the height |
| Marker | Places a Marker on the surface you |
| Screen | Places a Screen on the surface you |
| Brain | Places a Brain at the point you |
| Button | Places a Button on the surface you . a prop to make it the button |
| Player | Places the player start on the floor you |
Placing snaps to the grid. Hold Ctrl to place freely. Esc cancels, then switches to Select, then deselects, then leaves the tool.
Placing a Button opens its logic.
Object settings
Select a logic object to see its settings in the Inspector.
A space that detects players and objects entering and leaving. its handles in the 3D view to resize it.
| Setting | Default | Effect |
|---|---|---|
| Shape | Box | Its shape: Box, Sphere or Cylinder |
| Width, Height, Depth | 2 m | Its size, up to 200 m each way |
| Notices players | On | Lets players trigger its events |
| Notices physics objects | Off | Lets loose physics bodies trigger its events |
| A player weighs | 60 kg | The weight of one player, for Weight in volume |
| Check rate | 10 Hz | How often it checks, 1 to 30 times a second |
Capabilities
A capability adds behaviour to an object. Add one with Add capability in the Inspector.
Lets the object take damage and be destroyed.
| Setting | Default | Effect |
|---|---|---|
| Max health | 100 HP | Its health when full |
| Destroyed at 0 | Break | What happens at 0 health: Break, Hide or Nothing |
| Hurt by | Everything | What can damage it: Everything, Players, Explosions or Logic |
The Inspector's Logic section
The Logic section links the object to its graph and to other objects.
| Term | Meaning |
|---|---|
| Open logic | Opens the object's graph |
| Blueprint | Shows the blueprint state and its commands. See Blueprints |
| Add capability | Adds Health or Moving part. a chip to remove it |
| Starting values | Lists the object's exposed variables |
| Outputs | Links one of this object's events to an action on another object, without a graph |
| Inputs | Links another object's event to an action on this object |
Seeing connections
Logic connections in a view's Show menu draws lines between wired logic objects while the Logic tool is active.