SetPortraitResRef

// Change the portrait of oTarget to use the Portrait ResRef specified. // - oTarget: the object for which you are changing the portrait. // - sPortraitResRef: The ResRef of the new portrait to use. //                   The ResRef should not include any trailing size letter ( e.g. po_el_f_09_ ). // Note: Not all portrait ResRefs are suitable for use with all object types. //      Setting the portrait ResRef will also cause the portrait Id //       to be set to PORTRAIT_INVALID. void SetPortraitResRef(object oTarget, string sPortraitResRef)

WARNING: This function is missing from NWN2 and thus any script which is imported that uses this function will fail to compile