Difference between revisions of "CreateFullActorCopy"
Jump to navigation
Jump to search
imported>DragoonWraith (CS 1.0, and not Misc (it's in Actor Functions)) |
imported>Scanner m (notes about the copy base and factions get copied) |
||
Line 5: | Line 5: | ||
player.CreateFullActorCopy | player.CreateFullActorCopy | ||
Creates a copy of the specified actor and its base. | Creates a copy of the specified actor and its base. The copy will have its own base. | ||
Line 17: | Line 17: | ||
* Inventory items are duplicated in the same manner as [[DuplicateAllItems]] | * Inventory items are duplicated in the same manner as [[DuplicateAllItems]] | ||
* The copy will not have any AI packages | * The copy will not have any AI packages | ||
* Factions will be duplicated but aren't persistent on the copy | |||
==See Also== | ==See Also== |
Revision as of 16:06, 14 October 2007
Syntax:
[ActorID.]CreateFullActorCopy
Example:
player.CreateFullActorCopy
Creates a copy of the specified actor and its base. The copy will have its own 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
- Factions will be duplicated but aren't persistent on the copy