Difference between revisions of "CreateFullActorCopy"
Jump to navigation
Jump to search
imported>JOG |
imported>ShadowDancer (clarified usage of CreateFullActorCopy) |
||
Line 4: | Line 4: | ||
'''Example:''' | '''Example:''' | ||
player.CreateFullActorCopy | player.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 | 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