void

From NWN Lexicon
Jump to navigationJump to search

A null data type. Void-returning functions don't return an assignable value, but returning allows you to end the function early. Only functions of type 'void' can be assigned to the Action Queue.

Example

void SpeakWithPC(object oPC)
{
    // Abort if oPC is not a PC
    if (!GetIsPC(oPC))
        return;

    BeginConversation("", oPC);
}

See Also