SetAreaTileBorderDisabled(object, int)

From NWN Lexicon
Jump to navigationJump to search

Disables an areas tile border.

void SetAreaTileBorderDisabled(
    object oArea,
    int bDisabled
);

Parameters

oArea
The area to be affected.
bDisabled
If TRUE disable the tile border, FALSE to leave it up to the client.

Description

Set to TRUE to disable the inaccessible tile border of oArea. Requires a client area reload to take effect.


Remarks

There is no GetAreaTileBorderDisabled so track this with a local variable. You usually will want to do this on areas before any PCs enter, for example, by setting it in the OnModuleLoad event.


Version

This function was added in 88.8193.36-11 of NWN:EE.


Example

// Sets the given tagged area border to disabled
void main()
{
    object oArea = GetObjectByTag("MY_AREA");
    if (!GetLocalInt(oArea, "BORDER_DISABLED"))
    {
        SetAreaTileBorderDisabled(oArea, TRUE);
        SetLocalInt(oArea, "BORDER_DISABLED", TRUE);
    }
}

See Also

functions: 

GetFirstArea GetNextArea