NifBlockInterpolateTranslation
From GECK
A function added by the SUP NVSE Plugin.
Contents
Description
Changes translation of specified nif block from Start values to End Values.
Syntax
(success:bool) NifBlockInterpolateTranslation block name:string Start Value X:float Start Value Y:float Start Value Z:float End Value X:float End Value Y:float End Value Z:float timer:float mode:int iGetWorld:int FirstPersonModel(Player only):int CalculateStartValue:int
Example
Player.NifBlockInterpolateTranslation "Weapon" 0 0 0 0 0 10 2 2 0 0 0
Will change rotation from (X:0,Y:0,Z:0) to (X:0,Y:0,Z:10) and then back of "Weapon" on third person PC model, Infinite amount of times one iteration taking 2 seconds.
Player.NifBlockInterpolateTranslation "Weapon" 0 0 0 0 0 10 2 2 0 1 1
Will change rotation from current block translation to (X:0,Y:0,Z:10) and then back of "Weapon" on first person PC model, Infinite amount of times one iteration taking 2 seconds.
Notes
- For one block it is possible to invoke many types of interpolations at the same time.
- Modes are listed in NifBlock Interpolation Functions (SUP) category.