Riferimento API di nanos world Documentazione italiana non ufficiale
Documentazione ufficiale
Funzione Server Veloce

Vehicle:SetExplosionSettings

Configures the Explosion Settings when health reaches zero

Non ancora tradotto

Sintassi

Lua
my_vehicle:SetExplosionSettings(engine_relative_location, materials_index_burnt_override, materials_index_burnt_invisible)

Parametri

Nome Tipo Predefinito Descrizione
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.

Esempi

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