SetCaughtPCPickpocketting

From GECK
Jump to: navigation, search


A function added by the SUP NVSE Plugin.

Description

Sets "CaughtPCPickpocketing" flag on NPC reference which originally is set when player fails a pickpocket attempt. If called without parameter - will return the current flag set on NPC.

Syntax

[help]
(isCaught:int) [ObjectRefID].SetCaughtPCPickpocketting iCaught:int

Example

set iCaught to NPCRef.SetCaughtPCPickpocketting

Will return 1\0 depending on whether NPC has caught player pickepocketing.

NPCRef.SetCaughtPCPickpocketting 1

Will set flag to 1 meaning player can't pickpocket NPC anymore.