Difference between revisions of "CreateFullActorCopy"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>JOG
imported>ShadowDancer
(clarified usage of CreateFullActorCopy)
Line 4: Line 4:
'''Example:'''
'''Example:'''
  player.CreateFullActorCopy
  player.CreateFullActorCopy
set newRef to CreateFullActorCopy


Creates a copy of the specified actor and its base. Returns the ID of the new reference, so it can be used to set a reference variable as in the second example. The copy will be an exact duplicate of the original actor, including inventory, with the following exceptions:
Creates a copy of the specified actor and its base.  
 
 
'''Example:'''
set newRef to player.CreateFullActorCopy
 
Returns the ID of the new reference, so it can be used to set a reference variable.
 
 
In both cases the copy will be an exact duplicate of the original actor, including inventory, with the following exceptions:


* Inventory items are duplicated in the same manner as [[DuplicateAllItems]]
* Inventory items are duplicated in the same manner as [[DuplicateAllItems]]

Revision as of 10:13, 6 July 2006

Syntax:

[ActorID.]CreateFullActorCopy

Example:

player.CreateFullActorCopy

Creates a copy of the specified actor and its base.


Example:

set newRef to player.CreateFullActorCopy 

Returns the ID of the new reference, so it can be used to set a reference variable.


In both cases the copy will be an exact duplicate of the original actor, including inventory, with the following exceptions:

  • Inventory items are duplicated in the same manner as DuplicateAllItems
  • The copy will not have any AI packages or factions

See Also

DeleteFullActorCopy