SetUseableFlag(object, int)

From NWN Lexicon
Jump to navigationJump to search

Set a objects usable object status.

void SetUseableFlag(
    object oTarget,
    int nUseableFlag
);

Parameters

oTarget
The placeable, door, creature or item to change the usable status of.
nUseableFlag
If the given object is usable (TRUE) or not usable (FALSE).


Description

Set oTarget's useable object status.

Note: Only works on non-static placeables, creatures, doors and items.

On items, it affects interactivity when they're on the ground, and not useability in inventory.


Remarks

Usability is reflected on the client as them not being clickable. If an action sends them to the object anyway (eg an existing item, or a script command) it will fail.


Version

This function was updated in 1.87.8193.35 of NWN:EE. SetUseableFlag() now also works on Doors, Creatures and Items.


See Also

functions: 

GetUseableFlag



author: Mistress