GetWeapon1stPersonModel

From GECK
Jump to: navigation, search


A function added by the JohnnyGuitar NVSE Plugin.

Description

Returns the value of a "1st Person Model" trait of a Weapon (determined by traitID).

Syntax

[help]
(traitValue:ref) GetWeapon1stPersonModel Weapon:ref traitID:int{0-7}

Trait IDs

0	1st Person Model (WNAM)
1	1st Person Model - Mod 1 (WNM1)
2	1st Person Model - Mod 2 (WNM2)
3	1st Person Model - Mod 1 and 2 (WNM3)
4	1st Person Model - Mod 3 (WNM4)
5	1st Person Model - Mod 1 and 3(WNM5)
6	1st Person Model - Mod 2 and 3 (WNM6)
7	1st Person Model - Mod 1, 2 and 3 (WNM7)

Example

ref rWeaponModel
set rWeaponModel to GetWeapon1stPersonModel WeapHuntingRifle 1 // set rWeaponModel to 1st person model with mod 1 attached

See Also