OsNpcSaveAppearance

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
 
{{osslfunc
 
{{osslfunc
|function_syntax=key osNpcSaveAppearance(key npc, string notecard)
+
|function_syntax=key osNpcSaveAppearance(key npc, string notecard)<br>
|csharp_syntax=
+
key osNpcSaveAppearance(key npc, string notecard, integer includeHuds)
|description=Save the NPC's current appearance to a notecard in the prim's inventory. This includes body part data, clothing items and attachments. If a notecard with the same name already exists then it is replaced. The avatar must be present in the region when this function is invoked. The baked textures for the avatar (necessary to recreate appearance) are saved permanently.
+
|description=Save the NPC's current appearance to a notecard in the prim's inventory. This includes body part data, clothing items and attachments. If a notecard with the same name already exists then it is replaced. The avatar must be present in the region when this function is invoked. The baked textures for the avatar (necessary to recreate appearance) are saved permanently.<br>
 +
first variant will NOT include huds on the save appearence, note that is the oposite of the agent or owner ones. Second variant alloes control of that.
 
|threat_level=High
 
|threat_level=High
 
|permissions=${OSSL&#124;osslNPC}
 
|permissions=${OSSL&#124;osslNPC}
 
|delay=0
 
|delay=0
 
|ossl_example=
 
|ossl_example=
|additional_info=This function was added in 0.7.2-post-fixes
+
|additional_info=This function was added in 0.7.2-post-fixes, huds control added in 0.9.2.0
 
}}
 
}}

Revision as of 12:16, 1 June 2020

key osNpcSaveAppearance(key npc, string notecard)

key osNpcSaveAppearance(key npc, string notecard, integer includeHuds)

Save the NPC's current appearance to a notecard in the prim's inventory. This includes body part data, clothing items and attachments. If a notecard with the same name already exists then it is replaced. The avatar must be present in the region when this function is invoked. The baked textures for the avatar (necessary to recreate appearance) are saved permanently.

first variant will NOT include huds on the save appearence, note that is the oposite of the agent or owner ones. Second variant alloes control of that.

Threat Level High
Permissions ${OSSL|osslNPC}
Extra Delay 0 seconds
Notes
This function was added in 0.7.2-post-fixes, huds control added in 0.9.2.0
Personal tools
General
About This Wiki