nanos world API Reference Unofficial documentation
Function Server Fast

Vehicle:SetExplosionSettings

Configures the Explosion Settings when health reaches zero

Syntax

Lua
my_vehicle:SetExplosionSettings(engine_relative_location, materials_index_burnt_override, materials_index_burnt_invisible)

Parameters

Name Type Default Description
engine_relative_location Vector Relative location of the Engine. Used to apply particles and effects.
materials_index_burnt_override table List of material indexes to override to burnt when exploded. Leave it empty for all indexes.
materials_index_burnt_invisible table List of material indexes to override to invisible when exploded. Leave it empty for all indexes.

Examples

Vehicle Explosion Settings
my_vehicle:SetExplosionSettings(Vector(-50, 0, 0), { 1, 2, 4 }, { 3 })