Difference between revisions of "CreateFullActorCopy"
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 | ||
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