Difference between revisions of "CloneForm"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>Paulmartin347
imported>Qazaaq
m (Reverted edits by Paulmartin347 (Talk); changed back to last version by Haama)
Line 39: Line 39:
[[Category: Miscellaneous Functions]]
[[Category: Miscellaneous Functions]]
[[Category: Miscellaneous Functions (OBSE)]]
[[Category: Miscellaneous Functions (OBSE)]]
Hello, Friends now days I am reading about [http://www.articlesbase.com/supplements-and-vitamins-articles/my-weight-loss-experience-with-the-acai-berry-diet-1726693.html Acai Berry]. [http://ezinearticles.com/?Acai-Berry---How-I-Lost-30-Pounds-in-Under-30-Days-Using-The-Acai-Berry&id=1998407 Acai Berry] is a natural fruit which is found in Amazon rain forest. [http://www.buzzle.com/articles/the-facts-and-half-truths-about-the-acai-berry-diet.html Acai Berry] is an anti oxidant fruit which is very beneficial to reduce weight. Today [http://www.acaiberryinformations.com/ Acai Berry Supplements] are available in market which is made by acai berry fruit.

Revision as of 06:53, 14 October 2010

A command for Oblivion Script Extender

Syntax:

[nuObjectID] CloneForm [objectID]

This function creates an exact duplicate of the referenced base object supplied in objectID and returns the new objectID.

Example:

ref clone
ref originalObject

set originalObject to myReference.GetBaseObject
set clone to CloneForm originalObject; clone the base object of myReference
player.placeAtMe clone 1 0 0 ; place a reference to the clone at the player's location

Notes

  • 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.
  • 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.
  • 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 books will not have text.

See Also