SetUseableFlag

From NWN Lexicon
Jump to navigationJump to search


SetUseableFlag(object, int)

Set a placeable's usable object status.

void SetUseableFlag(
    object oPlaceable,
    int nUseableFlag
);

Parameters

oPlaceable

The placeable object to change the usable status of.

nUseableFlag

Presumably this is a TRUE (usable) / FALSE (not usable) setting.


Description

Set a placeable's usable object status.



Remarks

Note: Only works on non-static placeables. You can use this to hide a usable placeable among static ones.

Note however that static placeables can still be interacted with by scripts in a variety of ways, even if they can't be turned into usable placeables on the fly.


Version

1.68

See Also

functions: 

GetUseableFlag



author: Mistress