Mod:Creation Kit/WouldRefuseCommand - Actor

Member of: Mod:Creation Kit/Actor Script

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

Syntax
int Function WouldRefuseCommand(ObjectReference akTarget) native

Parameters

 * akTarget: The target ref for the command

Return Value
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
if (Preston.WouldRefuseCommand(SturgesRef) == 0) Debug.Trace("Preston would inspect Sturges!") endIf
 * check if Preston would do a command for the player on Sturges