BSDamageStage

From GECK
Jump to: navigation, search

BSDamageStage is a node type that corresponds to a min-max range of Model Damage Stages as defined in the Destruction Data on a base form.

A typical example

It is effectively a NiNode block that is unhidden/enabled when a matching Damage Stage is active (i.e. when a ref is at DamageStage 3, a BSDamageStage node in the NIF that has a minimum value of 3 will activate, and any children will become visible or become active, such as BSValueNodes).

Possible use cases include, but are not limited to:

  • Enabling BSValueNodes to attach a corresponding Addon Node to the NIF (fire, smoke, etc.)
  • Unhiding parts of the NIF (i.e. enabling a damaged layer of a wall after it's destroyed to save on performance)

Notes

Animation controllers play whether or not the parent Node is visible, you must make animation sequences using NiControllerManager and play them via script if you wish to animate things at specific times.


See Also