SetTextureOverride(string, string, object)

From NWN Lexicon
Jump to: navigation, search
Nwnee logo.jpg Note: This article documents Neverwinter Nights: Enhanced Edition new content or changes/updates/fixes to 1.69 functions. These are all listed under the category and patches pages.
Makes oPC load texture sNewName instead of sOldName.
int SetTextureOverride(
    string sOldName, 
    string sNewName = "", 
    object oPC = OBJECT_INVALID
);

Parameters

sOldName
The texture name specified in game models.
sNewName
The replacement texture name.
oPC
The player for whom the texture is overridden.

Description

Makes oPC load texture sNewName instead of sOldName.

If oPC is OBJECT_INVALID, it will apply the override to all active players.

Setting sNewName to "" will clear the override and revert to original.


Remarks

Version

1.74.8193.6

Example

Information icon.png This article is in need of examples. You can help the NWN Lexicon by showing how to use this code effectively.

See Also

functions: TBD