IsQuestItem

From GECK
Jump to: navigation, search


A function added by the Fallout Script Extender.

Description

Returns true if the specified object is marked as a Quest Item.

Syntax

[help]
(bool) IsQuestItem Item:Object

Example

if IsQuestItem SomePlayerItem
    ; Don't remove it from the player
endif 

Form Types

These form types can be Quest items:

22: Talking Activator
24: Armor
25: Book
31: Misc
40: Weapon
41: Ammo
42: NPC
43: Creature
46: Key
47: Ingestible
103: Weapon Mod

Notes

  • Does not compile when passing a form to it that isn't able to be kept in inventory, ie actors. When passing such forms to it via a ref var, it will always return false in-game. You can, however, determine if such forms are flagged as quest items by using GetFlagsLow with bit 10.

See Also