Bodies and injuries
For creators
The third-person hero can have a body instead of hit points. A bite is a wound that bleeds, a bad one puts the player down, and a first-aid kit stops the bleeding. This page shows how to turn that on, how to place first-aid kits, how level objects stop shots, and how to try it all in the impulse lab.
What the player sees and does is on Health and injuries.
Turn on the hero’s own body
Section titled “Turn on the hero’s own body”Your scene needs the third-person hero first. See The player hero.
- Open Scene Properties ▸ Custom Properties.
- Add
player.physiowith the value1. - Add
physio.paceto choose how fast bleeding and recovery run, andplayer.kitsfor the first-aid kits the hero starts with. - In a horde scene, set
player.healthto100000. The horde still counts its own health for the hero; set it out of reach so the body decides who lives. - For phones, add a first-aid button to your on-screen buttons:
heroAid=✚in the touch pad’shud.menu, as infire=✶|swap=⇄|heroAid=✚|jump=⤒. See Controls for your scene.
Press Play. The health bar is replaced by the hero’s pulse, blood, kits and a stamina bar.
| Tag | Values | What it does |
|---|---|---|
player.physio |
1 or true |
The hero has a body with blood, breath and wounds instead of hit points |
physio.pace |
sim (real time) · cinematic (2×) · arcade (5×, default) · a number from 0.25 to 20 |
How fast slow things happen: bleeding, clotting, the heart giving out. At arcade, a bleed from the thigh’s main artery takes about a minute instead of five |
player.kits |
A number. Default 1 |
First-aid kits the hero starts with, and has again after each new game |
player.profile |
A profile, such as age:30,sex:m. Default: the reference adult |
The hero’s age and build. See A body of its own build |
What the player gets
Section titled “What the player gets”- A heads-up display with the pulse (a heart beating at that rate), the blood left in percent, the kits (✚) and a stamina bar.
A second line says what is wrong, such as
Bleeding — forearm,(spurting),Down,Unconscious,Weak from blood lossorWinded, and the key that helps, such asH: tourniquet. - Wounds where they land. A bite marks the skin where it struck, and blood runs from it and drips onto the ground.
- First aid with H (the gamepad’s d-pad down, or a phone’s ✚ button where the scene has one). It uses a kit on the worst open wound: a tourniquet on a limb that spurts or pours (3.5 s), packing on a spurting wound elsewhere (3 s), or a bandage (2.5 s). Moving, a new bite or passing out stops it, and the kit is kept.
- Limits from the body. Running tires it; spent, it cannot sprint and its aim sways. A bitten leg limps. When it can no longer stand, it faints where it stands. It gets up when it can, and dies when its body does.
Signed in to MegaCity, players get the full reactive body: it flinches, a hand goes to the wound and presses it, and down but awake it crawls the way the player pushes. Signed out, the default body has the same blood and wounds, but it falls limp instead of crawling and no hand goes to the wound.
Place first-aid kits
Section titled “Place first-aid kits”A kit on the ground is any small object with these tags. The hero picks it up by walking over it.
| Tag | Values | What it does |
|---|---|---|
pickup |
medkit |
Makes the object a first-aid kit |
pickup.amount |
A number. Default 25 |
How many kits it gives. Always set it, usually to 1 |
pickup.respawn |
Seconds. Default 20 |
How long until it comes back |
If your scene has old health pickups (pickup = health), change them to medkit. A health pickup refills only the horde’s own count,
which no longer decides anything.
A body of its own build
Section titled “A body of its own build”player.profile grows the hero to an age and a build. Write key:value pairs joined by commas, such as
age:8,sex:f,h:50,band:obese,muscle:1. Its height and weight come from standard growth charts. Its blood, its resting pulse and breathing,
and its strength follow from them.
| Key | Values |
|---|---|
age |
Years, 0 to 90. Required: without it the profile is ignored |
sex |
m or f |
h |
Its height’s percentile for its age, 1 to 99. Default 50 |
height |
Its height in metres, instead of a percentile |
band |
underweight · healthy (default) · overweight · obese · severe |
bmi or weight |
Its build as a BMI or in kg, instead of a band |
muscle |
-1 frail · 0 average · 1 athletic · 2 a body-builder |
bones |
How strong its bones are for its age, from -2.5 to 2.5. 0 is average |
The reference adult is a man of 30, 1.84 m and 80 kg, with average muscle.
How hard materials stop shots
Section titled “How hard materials stop shots”In the impulse lab, a shot goes through each layer it meets, slowing as it goes, and a thrown spear or arrow can stick in what is
behind a body. What a level object is made of decides how far a shot gets into it. Tag the object with ballistics.material:
| Value | What it does |
|---|---|
wood |
A pistol round goes about 12 cm into pine. An arrow sticks 2 to 5 cm in and holds |
drywall |
Brittle. Holds a point that goes 3 cm in |
glass |
Brittle. Never holds a point |
sheet |
Thin sheet metal, like a car door’s skin. A pistol round goes through |
steel |
A 10 mm plate just stops a rifle round. A .50 round goes through. Never holds a point |
concrete |
A pistol round goes 1 to 4 cm in. Never holds a point |
brick |
Brittle. Never holds a point |
earth |
A pistol round goes about half a metre in, an arrow a quarter. Holds a point that goes 5 cm in |
kevlar |
A soft vest stops a pistol round. A rifle round goes through |
cloth |
Soft |
skin · fat · muscle · organ · lung · bone |
What bodies are made of |
Without the tag, the object’s name decides. The rows are checked in this order, and the first word the name contains wins, in any letter case:
| A name containing | Is |
|---|---|
| wood, door, crate, plank, board, post, fence, tree, log, table, shelf, pallet | wood |
| glass, window, pane | glass |
| drywall, plaster, partition | drywall |
| steel, metal, car, truck, van, container, rail, pipe, plate | steel |
| brick | brick |
| terrain, grass, dirt, soil, field, lawn, earth, mud | earth |
| anything else, including “Ground” | concrete |
Only objects with a collider count. A wall without one is not there for a shot.
Try it in the impulse lab
Section titled “Try it in the impulse lab”The impulse lab is a range of dummies and a bench of things to hit them with: thrown, struck, shot or blown up, each at its real mass and speed. Every dummy has blood, wounds and vitals.
- Open ▶ the impulse lab. Sign in to MegaCity first for the full reactions.
- Click the view to capture the mouse, and walk (W A S D) to the pale firing line.
- Press X for the pistol, aim at a dummy’s upper arm, and press F or the left mouse button.
- Read the bench at the top left: the part hit, the push it gave, and the wound. The monitor under it shows the dummy’s pulse, pressure and oxygen.
- Press the bench’s Tourniquet button to stop a limb’s bleeding, or Medic: a medic walks over, kneels and treats the dummy.
- Open Scales · time · dummies and press Backboard to stand a board behind the watched dummy: wood, then drywall, concrete, steel. Shoot through the dummy and see where the round stops.
- Press R to stand every dummy up again, healed.
| Key | Does |
|---|---|
| 1 to 0, Z, X, C, V, N, B | Choose a tool: ball, brick, crate, wrecking ball, spear, arrow, punch, bat, knife, shove, leg sweep, pistol, shotgun, rifle, .50 rifle, grenade |
| F or the left mouse button | Use the tool at the crosshair |
| T | Slow motion |
| P | Pause |
| R | Reset |
| H | Hide the bench |
Two link options change the lab: &pace= sets the pace (as physio.pace), and &body= grows every dummy to a profile, such as
&body=age:8,sex:f.
Signed out, the lab is plainer. The dummies wear a default body on its own clips: a fallen dummy blends straight back to standing, and there are no stumbles, crawls or kneels. The blood, the wounds and the monitor work the same.
Make your own test range
Section titled “Make your own test range”Any scene can be a lab. Add these tags.
| Tag | On | Values | What it does |
|---|---|---|---|
lab.impulse |
The scene | 1 |
Turns on the lab: its dummies, the bench and the monitor |
lab.dummy |
An Empty | idle · walk · run · crouch |
A dummy stands here, doing this |
lab.lane |
A dummy | Metres | It walks or runs this far ahead and back again. 0 or none: it stays |
lab.facing |
A dummy | Degrees. 0 faces Blender’s −Y |
The way it faces. None: the Empty’s own turn |
lab.paint |
A dummy | red · white · green · yellow · black · blue, or parts such as skin:e3b48f,shirt:c0392b |
Its colours. Parts are skin, shirt, sleeves, pants and shoes |
lab.trip |
A level object | 1 |
A rail: a moving shin or foot that meets it trips |
physio.pace |
The scene | As above | The dummies’ pace |
ballistics.material |
A level object | As above | What it is made of |
Only level objects with a collider are in the lab’s physics. Give them a collision tag, or give the scene a collision.default.
The published lab also sets player.controller = third and player.weapons.start = none, so the hero carries nothing and the bench
is the weapon.
Limits
Section titled “Limits”- Today, only a horde’s bite wounds the hero. In a scene without a horde, the hero’s body still tires, but nothing hurts it.
- First-aid kits on the ground work in a horde scene, and only for a hero with
player.physio. - Set
pickup.amounton every kit. Without it, one kit gives 25. - Materials count only in the impulse lab. The guns in games such as the horde still hit by their weapons table.
- Names match any part of a word. “Carpet” contains “car” and counts as steel. Tag
ballistics.materialwhere it matters. - A ground is concrete unless it says otherwise. Name it with “earth” or tag it, if you want points to stick in it.
- First aid takes the same time at every pace. In the lab, the medic’s work speeds up with the pace; the hero’s own kit does not.
- Twelve wounds a body. A thirteenth replaces the one bleeding least.
- Marks on the skin need WebGL 2. With WebGPU the bodies stay clean, but the wounds work the same.
To build a level around it, follow the tutorial Bitten.