GetCommandable
Contents |
[edit] GetCommandable(object)
Determines if the object in question can have actions added to it's action Queue.
int GetCommandable( object oTarget = OBJECT_SELF );
[edit] Parameters
oTarget
(Default: OBJECT_SELF)
[edit] Description
Returns TRUE if oTarget's action stack can be modified.
[edit] 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 que. They can become uncommandable via the SetCommandable(FALSE,oTarget) function. This is useful when you want a PC to not be able to choose their actions for a short amount of time, or if you want an NPC to do something important, but who has scripting that would normally have the action called to fail (like a move to in a battle).
[edit] Version
1.26
[edit] See Also
functions: |
author: John Shuell, editor: Charles Feduke, additional contributor(s): Jason Hyde