Background for Fallout 4
Member of the Actor script
intfunctionWouldRefuseCommand(ObjectReferenceakObject)Native

Description

Wiki Description

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

Documentation Comment

Obtains the ability to do a command on ref for player
0 - will do the command
1 - refuse for reasons other then moral/impossible
2 - Impossible
3 - Morale refusal
Returns if actor can do command on ref for player


Parameters

  1. ObjectReferenceakObject

    CK Wiki Description

    The target ref for the command


Examples

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

Auto-Generated Example

ObjectReference myObjectReference__akObject

int returnedValue = myActor__toCallFunctionOn.WouldRefuseCommand(myObjectReference__akObject)

Related Pages


Additional References

View this function’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.