Skip to main content

Trigger Volumes

Trigger volumes are invisible areas that change the players and other objects inside them. A hurt trigger burns, a radiation trigger gives radiation, a heat volume warms. Rust has prefabs for them that you place like any other prefab. When you select one, the Inspector shows a panel to set what it does.

A radiation volume's placeholder sphere selected in the scene, with the Radiation Trigger panel in the Inspector

How to set a trigger​

  1. Place the trigger prefab from the Content Browser. See Find trigger volumes and Placing Prefabs.
  2. Move and scale it to cover the area you want.
  3. Select it. The Inspector shows its trigger panel.
  4. Change the values.

To change several triggers of the same kind at once, select them all. The damage lists of Hurt Trigger Extended show only when one trigger is selected.

A trigger volume has no model in the game. RustEdit draws it as a placeholder shape, so you can see and select it. See Placeholders. The volume's size is the prefab's size: scale the prefab to make the volume bigger or smaller.

Find trigger volumes​

Rust's trigger volumes are in the Content Browser, under Rust's modding prefabs. Some of Rust's other prefabs have a trigger inside them too. The modding prefabs show these panels:

Prefabs (in modding)Panel
radiation/radiation_low, radiation_med, radiation_highRadiation Trigger
volumes_and_triggers/comfort_volumeComfort Trigger
volumes_and_triggers/heat_volumeTemperature Trigger
volumes_and_triggers/hurt/fire_trigger_med, fire_trigger_high, fire_trigger_deathTemperature Trigger and Hurt Trigger Extended
volumes_and_triggers/hurt/damage_trigger_low, _mid, _high, _deathHurt Trigger Extended
volumes_and_triggers/trigger_forceForce Trigger
info

The game files that RustEdit reads leave out the damage and the push of these volumes: Rust keeps them on the server only. RustEdit adds them back, with the server's values, so you can change them. See What is saved.

The trigger panels​

PanelWhat it does in Rust
Hurt TriggerDeals damage of one type, every second, to everything inside that can be hurt.
Hurt Trigger ExtendedDeals damage when something enters, while it stays, as it moves and when it leaves. Each can mix several damage types.
Radiation TriggerGives radiation to players inside. It is strongest in the middle and fades at the edge.
Temperature TriggerWarms or cools players inside toward its temperature. It can also make shade at certain hours.
Comfort TriggerGives players inside comfort, as a campfire or a chair does.
Wetness TriggerMakes players inside wet.
Force TriggerPushes objects inside in one direction.

No placeable Rust prefab uses the plain Hurt Trigger: Rust has it only inside other prefabs, which RustEdit does not show.

Hurt triggers​

A Hurt Trigger deals Damage Per Second of one Damage Type. It splits the damage into Damage Tick Rate hits a second. With 10 damage per second and a tick rate of 4, it deals 2.5 damage four times a second.

A Hurt Trigger Extended checks everything inside it every Rate seconds. It has four lists of damage, and each list can have several rows of Damage Type and Damage Amount:

ListWhen it deals the damage
Damage On EnterOnce, when something enters.
Damage On TimerThe amount each second while something stays inside, split over the ticks.
Damage On MoveThe amount for each meter something moves inside.
Damage On LeaveOnce, when something leaves.

Each list has its Hurt Type. Simple deals plain damage. Include Bleeding And Screen Shake deals the damage as an attack, which can make players bleed and shakes their screen. Turn Damage Enabled off to stop all of its damage.

Rust's modding volumes start like this:

  • The damage triggers deal damage when something enters, and for each meter it moves inside.
  • The fire triggers deal heat damage when something enters, and over time while it stays inside.

Radiation​

A Radiation Trigger gives the radiation of its Radiation Tier:

TierRadiation
Minimal2
Low10
Medium25
High51

Set Radiation Amount Override above 0 to use your own amount instead. A player's radiation protection takes its value off the amount.

The radiation is full in the middle of the volume and fades to nothing at the edge. Falloff is how much of the radius it fades over: with 0.1, it fades over the outer tenth.

Temperature, comfort and wetness​

  • A Temperature Trigger moves the temperature of a player inside toward its Temperature. The nearer the middle, the closer it gets.
  • With Sunlight Blocker on, it does something else: between Block Min Hour and Block Max Hour, a player inside who cannot see the sun gets Sunlight Block Amount degrees colder. Its Temperature is then not used. The three sunlight rows can be changed only while Sunlight Blocker is on.
  • A Comfort Trigger gives Base Comfort within Min Comfort Range meters of its middle. Farther out, the comfort fades to nothing at the edge. Each other player inside adds a little more.
  • A Wetness Trigger makes a player as wet as Wetness in its middle, less toward the edge.

Force​

A Force Trigger moves the objects inside it at its Velocity, in meters a second. The direction is in the trigger's own axes, so it turns when you turn the prefab. Rust's trigger_force pushes forward at 5.25 m a second.

What is saved​

  • RustEdit saves the trigger values in the scene file.
  • The exported map carries them too, in RustEdit's own data in the map, when you export with In RustEdit data. When you open the exported map in RustEdit, each trigger gets its values back. With In the map, the trigger values are lost. See In the map or in RustEdit data.
  • Rust itself places trigger volumes from the map's prefab list, with Rust's own values. A server needs the RustEdit 2 Server Extension to give them your values.
  • Changes in these panels are not undo steps.
  • Play mode does not run trigger volumes: you cannot test damage or radiation by walking into them.