WouldRefuseCommand - Actor

Member of: Actor Script

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

SyntaxEdit

int Function WouldRefuseCommand(ObjectReference akTarget) native

ParametersEdit

  • akTarget: The target ref for the command

Return ValueEdit

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

ExamplesEdit

; 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 AlsoEdit