Props, lights and effects¶
Note
These entities come with the Gameplay entities pack, see
Installing and customizing. light, light_spot and the probes
(light_probe, env_reflection_probe and env_voxel_gi) are part of the addon's core and work without it.
prop_physics¶
A crate or barrel that can be thrown, damaged and broken. It breaks at 0 health, on an impact faster than
impact_speed, on smash, or fuse seconds after ignite. An explosive prop blasts when it breaks.
| Key | Default | What it does |
|---|---|---|
model |
The scene it looks like, only for looks | |
size |
16 16 16 | Half extents of its box collision, so the default is one meter wide |
collision |
default | default and box use size, convex hull and convex decomposition follow the model, see Collision |
collision_layer, collision_mask |
empty | Layer numbers such as 1, 3, empty keeps the project default |
mass |
5.0 | Mass in kilograms |
health |
30 | Damage it takes before breaking |
explosive |
0 | Blasts when it breaks |
explosion_radius, explosion_damage |
192, 40 | Size and strength of that blast |
fuse |
0.6 | Seconds an ignited prop burns before it breaks |
impact_speed |
0 | Breaks when it hits something faster than this in m/s. 0 never breaks on impact |
debris_scene |
A scene spawned where it broke, like planks |
- Inputs:
smash,ignite(activator),push(direction),take_damage(amount, source) - Outputs:
damaged(hp)with the health left,broken
push takes a velocity in map units per second. broken fires after the blast, so whatever it triggers already sees
the damage.
The prop builds its model and collision box each time the scene loads. Godot's editor shows them as a preview, which is not saved with the scene.
prop_model¶
A static model with optional collision, for furniture, rocks and other props that should not move.
- Keys:
model(.bbmodel, .glb, .gltf or .tscn),model_node,collision,collision_layer,collision_mask,scale1.0
collision default gives each mesh a convex hull, fine for boxy shapes. Pick convex decomposition or trimesh for
shapes the player walks through or on, like an arch, or box for the cheapest shape, see Collision.
Collision is only generated when the model has none of its own. Models placed with Model Prop and models inside
prefabs are prop_model entities, so they collide the same way. For a file
that holds several variants side by side, model_node keeps only the named node and moves it to the prop's origin.
env_explosion¶
A scripted blast, like a wall charge. On explode it calls damage_method on every node within radius with
damage * (1 - distance / radius), pushes rigid bodies away and spawns effect_scene for the flash and bang.
- Inputs:
explode(activator) - Outputs:
exploded - Keys:
radius256,damage50,force8 (m/s at the center, whatever the mass),damage_methodtake_damage,effect_scene
Distance is measured to each node's origin with no line of sight check, so it hurts through walls.
game_text¶
Shows a line of text in the world, on the HUD or both, for hints, signs or cutscene subtitles.
| Key | Default | What it does |
|---|---|---|
text |
The text to show | |
place |
world | world floats at the entity, hud shows it on screen, both does both |
start_visible |
0 | Shown from map load |
duration |
0 | Hides it after that many seconds, 0 keeps it up until hide |
text_color |
255 255 255 | Text color |
world_size |
0.01 | World label size in meters per pixel |
billboard |
1 | The world label faces the camera and draws through walls. Turn it off for signs, which then keep the entity's angles and hide behind walls |
- Inputs:
show,hide,set_text(text),flash(seconds) - Outputs:
shown,hidden
show and hide switch the label, not the node. flash shows it for its parameter in seconds, else duration,
else 2.
light and light_spot¶
Omni and spot lights that inputs switch on and off, for light switches, alarms and flickering lamps. switched only
fires when the state actually changes. They are part of the addon's core, so every project has them.
- Inputs:
turn_on,turn_off,toggle - Outputs:
switched(on) - Keys:
light_energy1.0 (1.5 for spots),light_color255 255 255,start_on1,shadows0 (costs more to render),fixture,fixture_offhide, andomni_range10, orspot_range15 andspot_angle35 (the cone's half angle in degrees),bake_modeauto,light_size0,light_indirect_energy1, andomni_attenuation1, orspot_attenuation1 andspot_angle_attenuation1. These last keys set the Godot light properties of the same name, and the bake uses them too
Fixtures keep the lamp model in step with the light. Give the lamp's glowing geometry a targetname and put it in
fixture, a trailing * matches a prefix so hall_tube_* covers every tube. It is shown while the light is on and
hidden while off, with no wiring. With fixture_off set to dark it stays visible with its emission off. fixture
takes the other target forms too, @lamps for a node group and /root/... for a node
path. The editor previews every form but the node path, which only Godot can resolve.
bake_mode and light_size decide how Bake Lighting treats the light. With
auto a light that I/O can switch, one with a targetname or start_on 0, stays real time.
env_sound¶
A sound that plays from a point in the level, for alarms, machinery or a crash wired to an event.
- Inputs:
play,stop,toggle - Outputs:
finished - Keys:
sound(ares://audio file),volume_db0,max_distance0 (no limit),autoplay_on0 (plays from map load),loop_sound0
env_particles¶
A particle effect for fire, smoke, sparks, dust and rain, with built in looks so you need not build one yourself.
burst emits one shot, then a running effect carries on.
- Inputs:
start,stop,toggle,burst - Outputs:
finished - Keys:
amount32 (particles alive at once),lifetime2.0,one_shot0,start_emitting0,effectrise,color255 255 255,size0,blendauto,area10 1 10
effect is rise (glowing dust or embers), fire, smoke, sparks or rain (falls from a box area meters
wide, high and deep). color tints it, and white keeps the effect's own colors. size sets the particle size in
meters, 0 uses the effect's own. blend is add for glow or mix for smoke. The defaults of each effect look right
on their own, so start with only effect.
light_probe, env_reflection_probe and env_voxel_gi¶
Probes that light and reflect moving objects, see Baked lighting in Godot. None has inputs or outputs.
| Entity | What it is | Keys |
|---|---|---|
light_probe |
A point that adds one light probe to the bake, for spots the probe grid misses | None |
env_reflection_probe |
A brush volume that becomes a ReflectionProbe the size of the brush |
intensity 1.0, update once, box_projection 1, interior 0, max_distance 0 |
env_voxel_gi |
A brush volume that becomes a VoxelGI the size of the brush, baked in the Godot editor on each build |
subdiv 128, energy 1.0, bake_on_build 1 |
update set to always captures a reflection probe every frame for moving objects, which costs a lot. box_projection
lines reflections up with the walls of a room, interior leaves the sky out for rooms without windows, and
max_distance is how many meters the probe sees past its box. subdiv is 64, 128, 256 or 512 voxels along the
longest side, more is sharper and slower to bake.