WouldBeStealing - Actor

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

Member of: Actor Script

Checks if the taking of a ref would be stealing for this actor

Syntax[edit | edit source]

bool Function WouldBeStealing(ObjectReference akTarget) native

Parameters[edit | edit source]

  • akTarget: The target ref to be taken

Return Value[edit | edit source]

True if it would be stealing and false if qualifies as an owner

Examples[edit | edit source]

; check if the player would be stealing a glove ref
if (Player.WouldBeStealing(BaseBallGloveRef))
  Debug.Trace("Bad player!")
endIf

See Also[edit | edit source]