ReplaceObjectTexture( object, string, string )
- An object to update a texture.
- The old texture to replace.
- The new texture. Specifying sNew = "" will restore the original texture.
Replace's oObject's texture sOld with sNew. Specifying sNew = "" will restore the original texture. If sNew cannot be found, the original texture will be restored. sNew must refer to a simple texture, not PLT.
This can replace any texture for all clients. It may be done frequently enough to mimic movement (eg; altering a "object tile" texture to show a moving landscape), or to do some useful swaps of terrain (such as snow appearing when it is snowing on top of placeable objects in the area).
It is per-object so a loop must be done if replacing multiple objects of the same kind.
Obviously the texture must be appropriate, and using the wrong texture file to replace one can have unforeseen consequences.
Static placeable objects are not affected by this function at all.
This function was added in 1.80.8193.14 of NWN:EE.