ToggleCreatureModel

From GECK
Jump to: navigation, search


A function added by the JIP NVSE Plugin.

Description

Toggles a model within a creature's model-list ON or OFF.

Syntax

[help]
(success:0/1) reference.ToggleCreatureModel modelPath:string enableModel:0/1 baseForm:ref

Example

RexRef.ToggleCreatureModel "eyessetvicious.nif" 1
ToggleCreatureModel "eyessetvicious.nif" 1 Rex 

Notes

  • The model path must be relative to the creature's model folder and include the ".nif" extension.
  • When called on a reference which is currently being rendered, the reference must be disabled and then re-enabled (alternatively, Update3D can be called on the reference) before the change is visible.

See Also