SetNifBlockTranslation

From GECK
Jump to: navigation, search


A function added by the JIP NVSE Plugin.

Description

Sets the XYZ translation of the specified NIF block in the calling reference's loaded 3D model.

  • The 5th 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

[help]
reference.SetNifBlockTranslation blockName:string posX:float posY:float posZ:float pcModel:1/2 

Or:

reference.SetNifTrans blockName:string posX:float posY:float posZ:float pcModel:1/2

Example

objectRef.SetNifBlockTranslation "Bucket01:0" 12 -7.4 0.8
player.SetNifBlockTranslation "##SightingNode" 25.4 0 6.25 2 

Notes

  • The changes are reset once the calling reference's parent cell is reloaded, or Update3D is called on it.

See Also