WouldRefuseCommand - Actor
Revision as of 09:23, 12 May 2014 by imported>Plplecuyer
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