ToggleCreatureModel
Revision as of 19:35, 7 June 2015 by imported>Jazzisparis (Created page with "{{Function |origin = JIP |summary = Toggles a model within a creature's model-list ON or OFF. |name = ToggleCreatureModel |returnType = success:0/1 |referenceType = refer...")
< [[::Category:Functions|Category:Functions]]
A function added by the JIP NVSE Plugin.
Description
Toggles a model within a creature's model-list ON or OFF.
Syntax
(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.