Difference between revisions of "Talk:CreateFullActorCopy"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>ShadowDancer
imported>ShadowDancer
(Additional info)
Line 4: Line 4:


:[[User:ShadowDancer|ShadowDancer]] 10:32, 6 July 2006 (EDT): Well short of writing a script that goes through all of the factions and does a [[GetInFaction]] & [[GetFactionRank]]/[[SetFactionRank]] on the CreateActorFullCopy I can't think of an easy way to do it.  Interestingly enough, while the CreateFullActorCopy may not have AI Packages, they do have the combat packages and spells hardcoded into the specified actor.  Leaving out that one tab on the actor is a bit odd if you ask me, though I suppose it had to do with what they thought they were doing when they made the game.  If you need the dialogue, I haven't a clue as to how you would add that onto a copy since I don't see how you could find out the packages that the actor originally had.
:[[User:ShadowDancer|ShadowDancer]] 10:32, 6 July 2006 (EDT): Well short of writing a script that goes through all of the factions and does a [[GetInFaction]] & [[GetFactionRank]]/[[SetFactionRank]] on the CreateActorFullCopy I can't think of an easy way to do it.  Interestingly enough, while the CreateFullActorCopy may not have AI Packages, they do have the combat packages and spells hardcoded into the specified actor.  Leaving out that one tab on the actor is a bit odd if you ask me, though I suppose it had to do with what they thought they were doing when they made the game.  If you need the dialogue, I haven't a clue as to how you would add that onto a copy since I don't see how you could find out the packages that the actor originally had.
:Additionally, as long as you get a reference variable to the copy, you can pretty much do whatever to the copy without affecting the original from what I found by experimentation with this.  Changing the name doesnt affect the base copy or the original in the game from what I have seen (I created an activator to duplicate an NPC reference though).  Mileage might vary in a spell script since scripts sometimes have odd effects for no apparent reason.  I did a [[SetActorFullName]] and a [[RemoveAllItems]] on the copy with no effects on the original in the same room.  It essentially creates a new reference to the base object minus the dialogue and AI functions from what I can tell.  I still have no idea why it wipes those.

Revision as of 10:24, 6 July 2006

Dragoon Wraith TALK 13:20, 5 July 2006 (EDT): Does this simply create a new Reference to the same Object, or does this create a new Object that is a duplicate of the original? (i.e. if I use Object-changing function on a copy, will it affect the original)

Also, anyone know a good way to copy over the factions and things that the base has, to create a true duplicate?

ShadowDancer 10:32, 6 July 2006 (EDT): Well short of writing a script that goes through all of the factions and does a GetInFaction & GetFactionRank/SetFactionRank on the CreateActorFullCopy I can't think of an easy way to do it. Interestingly enough, while the CreateFullActorCopy may not have AI Packages, they do have the combat packages and spells hardcoded into the specified actor. Leaving out that one tab on the actor is a bit odd if you ask me, though I suppose it had to do with what they thought they were doing when they made the game. If you need the dialogue, I haven't a clue as to how you would add that onto a copy since I don't see how you could find out the packages that the actor originally had.
Additionally, as long as you get a reference variable to the copy, you can pretty much do whatever to the copy without affecting the original from what I found by experimentation with this. Changing the name doesnt affect the base copy or the original in the game from what I have seen (I created an activator to duplicate an NPC reference though). Mileage might vary in a spell script since scripts sometimes have odd effects for no apparent reason. I did a SetActorFullName and a RemoveAllItems on the copy with no effects on the original in the same room. It essentially creates a new reference to the base object minus the dialogue and AI functions from what I can tell. I still have no idea why it wipes those.