CheckIsUnlocked(object)

From NWN Lexicon

Plays voice chat messages that indicates the locked status of a door or placeable.

void CheckIsUnlocked(
    object oLastObject
);

Contents

[edit] Parameters

oLastObject
The door or placeable to report the locked status of.

[edit] Description

Makes the caller of script do a voice chat that indicates the locked status of a door or placeable.

(Does not lock or unlock the object and does not make the creature do anything else).

[edit] Remarks

This function is not used in any Bioware scripts.

[edit] Requirements

#include "nw_i0_generic"

[edit] Version

1.22

[edit] Example

// This is the exact function
void CheckIsUnlocked(object oLastObject)
{
    if(GetLocked(oLastObject))
    {
        ActionDoCommand(PlayVoiceChat(VOICE_CHAT_CUSS));
    }
    else
    {
        ActionDoCommand(PlayVoiceChat(VOICE_CHAT_CANDO));
    }
}

[edit] See Also



 author: Tom Cassiotis, editor: John Shuell

Personal tools
Categories