GetPermanent

From GECK
Jump to: navigation, search


A function added by the New Vegas Script Extender.

Description

When called on a reference with ref syntax, returns True (1) if the calling reference is persistent. When passing a reference as parameter, returns true if the reference is flagged as a quest item.

Syntax

[help]
(bool) reference.GetPermanent ItemOrActor:Ref 

Example

if SomeRef.GetPermanent
    ; ref is persistent
endif
if GetPermanent SomeRef
    ; ref is quest item
endif

Note

  • In contrast with IsQuestItem, GetPermanent does work with actors in order to figure out if they're flagged as quest items. It only accepts references, however, not base forms.

See Also