GetCommandable(object)

From NWN Lexicon
Jump to: navigation, search

Determines if the object in question can have actions added to it's action Queue.

int GetCommandable(
    object oTarget = OBJECT_SELF
);

Parameters

oTarget
Target to check (Default: OBJECT_SELF)

Description

Returns TRUE if oTarget's action stack can be modified.

Remarks

GetCommadable is used to test if an object's action queue is commandable, or in others words, can they or others (via AssignCommand) add/modify their action queue. They can become uncommandable via the SetCommandable(FALSE,oTarget) function or a swath of effects that remove action queue use (eg; Confusion).

See SetCommandable for gotchas and pitfalls in relation to the use of the commandable state on PCs.

Version

1.26

See Also

functions: 

SetCommandable



 author: John Shuell, editor: Charles Feduke, additional contributor(s): Jason Hyde