Difference between revisions of "CreateFullActorCopy"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>ShadowDancer
(clarified usage of CreateFullActorCopy)
imported>ShadowDancer
(forgot to add that it also creates a full copy of the actor)
Line 11: Line 11:
  set newRef to player.CreateFullActorCopy  
  set newRef to player.CreateFullActorCopy  


Returns the ID of the new reference, so it can be used to set a reference variable.
Creates a copy of the actor and returns the ID of the new copy, so it can be used to set a reference variable.





Revision as of 10:26, 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 

Creates a copy of the actor and returns the ID of the new copy, 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