RemoveNifBlock
From GECK
A function added by the JIP NVSE Plugin.
Contents
Description
Removes the specified NIF block, along with all its child blocks (if any), from the calling reference's loaded 3D model.
- The effect is instantaneous and does not require calling Update3D.
- The 2nd argument, pcModel, is optional, and may be used when calling the function on the player. The player character has two, completely separate 3D models for 1st and 3rd person. This argument enables to explicitly target one of the models.
1 3rd Person Model 2 1st Person Model
Syntax
(successful:0/1) reference.RemoveNifBlock blockName:string pcModel:1/2
Example
player.RemoveNifBlock "ProjectileNode"
Notes
- The changes are reset once the calling reference's parent cell is reloaded, or Update3D is called on it.
- RemoveNifBlock should not be used on anything inserted/attached via AttachModel, or InsertNode, unless it's a dynamic reference.