Skip to content

Class: explosive ​

Explosive component shared by grenade and explosive item classes.

Source ​

src/xrGame/WeaponScript.cpp, explosive binding.

Custom Constructor ​

explosive

Remarks ​

Returned for objects that expose the native explosive component. Do not use it as a generic item wrapper.

Extends ​

Constructors ​

Constructor ​

ts
protected new explosive(): explosive;

Engine-created explosive component.

Returns ​

explosive

Overrides ​

EngineBinding.constructor

Methods ​

explode() ​

ts
explode(): void;

Trigger the explosive immediately.

Returns ​

void

Remarks ​

Requires the owning object to still be alive in the engine object registry.

Properties ​

__name ​

ts
readonly __name: string;

LuaBind instance constructor name.

Inherited from ​

EngineBinding.__name


__name ​

ts
readonly static __name: string;

LuaBind class constructor name.

Inherited from ​

EngineBinding.__name