Difference between revisions of "CloneForm"

124 bytes added ,  15:30, 30 September 2011
imported>Haama
imported>DragoonWraith
 
(3 intermediate revisions by 3 users not shown)
Line 18: Line 18:
==Notes==
==Notes==
*Cloned forms are saved in the save game.
*Cloned forms are saved in the save game.
*Cloning an object allows you to then make changes to the clone without affecting the original object.  
*Cloning an object allows you to then make changes to the clone without affecting the original object. Changes to cloned base objects are also saved, which they usually are not.
*This function works for any game type (objects, spells, enchantments, NPCs).
*This function works for any game type (objects, spells, enchantments, NPCs).
*If called on an Inventory Object (weapon, armor, light, potion, book, ingredient etc.) you may pass the CS EditorID directly into the function.  
*If called on an Inventory Object (weapon, armor, light, potion, book, ingredient etc.) you may pass the CS EditorID directly into the function.  
*For any other type you must first set a ref variable to the appropriate objectID before calling CloneForm.
*For any other type you must first set a ref variable to the appropriate objectID before calling CloneForm.
* Cloned NPCs have no items in their inventories and are unscripted.
* Cloned NPCs have no items in their inventories and are unscripted.
* It appears that an NPC can only be cloned once.
* Cloned books will not have text.
* Cloned books will not have text.