WouldRefuseCommand - Actor

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

Member of: Actor Script

Checks if the actor would refuse a command on the ref for the player (and why)

Syntax[edit | edit source]

int Function WouldRefuseCommand(ObjectReference akTarget) native

Parameters[edit | edit source]

  • akTarget: The target ref for the command

Return Value[edit | edit source]

One of the following:

  • 0: Would do the command
  • 1: Would refuse for any/unknown reason
  • 2: Would refuse for impossible
  • 3: Would refuse for moral reasons

Examples[edit | edit source]

; check if Preston would do a command for the player on Sturges
if (Preston.WouldRefuseCommand(SturgesRef) == 0)
  Debug.Trace("Preston would inspect Sturges!")
endIf

See Also[edit | edit source]