LNIsPlayable

From GECK
Jump to: navigation, search


A function added by the Lutana NVSE plugin, now part of the JIP NVSE Plugin.

Description

Similar to IsPlayable, but also works for RACE, EYES, HAIR, and PERK forms. If a calling reference is given, its BaseForm is used.

Unplayable Items

Items that are not playable do not show up in inventories that aren't the player's. Beyond that, there are a couple differences between what the "IsPlayable" flag does for each type of item that can have it.

For Biped forms like Armor, the player cannot see them in the Pip-Boy, and as such cannot equip or unequip them normally, though it's still possible to put them on the player through scripts or console commands. They appear normally when dropped in the world.

For Weapons and Ammo, the player can see them in the Pip-Boy, and can equip/unequip them at their whim. When placed in the world, neither can be picked up, and no activation prompt shows up for Weapons (whereas one does show up for Ammo).

Syntax

[help]
(bool) reference.LNIsPlayable playableForm:form

Example

set bIsPlayable to LNIsPlayable WeapNVCaravanShotgunCass

Returns 0 (not playable).

Form Types

These form types can be Playable:

10	Hair
11	Eyes
12	Race
24	Armor
40	Weapon
41	Ammo
86	Perk

See Also