Skip to content

Trap Inventory

Hypoxic edited this page Oct 26, 2023 · 1 revision

Trap Inventory

Module Description

Traps inventories to have an explosive surprise. Can be used mainly on crates, though there has been success on vehicles and unit inventories, though not officially supported currently.

Module Arguments

Explosive Type

Classname of CfgAmmo explosive. If using a grenade, the grenade fuse will have to burn before explosion (not instant).

Accepts: CfgAmmo classname (without "")

Default: GrenadeHand

Explode Chance

The chance (0 to 1) that the trap will explode when opening.

Accepts: Positive Float (0 to 1)

Default: 0.5

Can Disable

Allows the trap to be disabled.

Default: Disabled

Persist After Opening

Does not remove the trap upon a successful opening of the inventory. Does not apply to disabled inventories.

Default: False

Sync

Accepted Objects

  • Crate(s)
  • Vehicle(s)
  • Units(s)

Trigger Effects

Not compatible with triggers.