GetIsDestroyable(object)

From NWN Lexicon
Jump to navigationJump to search

Checks if a object is destroyable.

int GetIsDestroyable(
    object oObject
);

Parameters

oObject
Object to check


Description

Checks if a object is destroyable (toggle this state with SetIsDestroyable).

Returns TRUE if they can be destroyed, FALSE otherwise or in error.


Remarks

If a object isn't destroyable then DestroyObject will fail when called on it. The game sometimes calls DestroyObject (such as when a summon is unsummoned).

Note the plot flag stops damage and death effects, but does not stop DestroyObject.


Version

This function was added in 1.89.8193.37 of NWN:EE.


Example

NWScript here

See Also

functions:

SetIsDestroyable, GetIsRaiseable, GetIsSelectableWhenDead