GetWeaponModel

From GECK
Jump to: navigation, search


A function added by the JIP NVSE Plugin.

Description

Returns the file path of one of the optional models of the specified Weapon form.

The second argument modBitmask determines which model is to be returned:

0	Default model (no mods)
1	Mod 1 attached
2	Mod 2 attached
3	Mods 1+2 attached
4	Mod 3 attached
5	Mods 1+3 attached
6	Mods 2+3 attached
7	Mods 1+2+3 attached

Syntax

[help]
(modelPath:string_var) GetWeaponModel weapon:form modBitmask:int{0-7}

Example

let sModelPath := GetWeaponModel WeapNVAssaultCarbine 0
let sModelPath := GetWeaponModel WeapGatlingLaser 3 

See Also