giamel Posted June 18, 2021 Posted June 18, 2021 Need help from a big brained individual. I was trying to duplicate the exact actor via dialogue but its cycling through the actor's leved list. I'll eventually get the correct actor but after a random amount of tries. Would someone be so kind to correct my code? DupEm = akSpeaker.GetBaseObject() as Form akSpeaker.PlaceAtMe(DupEm) Form Property DupEm auto
Monoman1 Posted June 18, 2021 Posted June 18, 2021 Have you tried GetLeveledActorBase? Edit: Don't know if I'd use a property for this code. Seems like a waste akSpeaker.PlaceActorAtMe(akSpeaker.GetLeveledActorBase()) This alone should do the same thing.
giamel Posted June 18, 2021 Author Posted June 18, 2021 12 minutes ago, Monoman1 said: Have you tried GetLeveledActorBase? Yes. same thing. Here is that code: DupEm = akSpeaker.GetLeveledActorBase() as ActorBase akSpeaker.PlaceActorAtMe(DupEm) ActorBase Property DupEm auto
giamel Posted June 18, 2021 Author Posted June 18, 2021 1 hour ago, Monoman1 said: Have you tried GetLeveledActorBase? Edit: Don't know if I'd use a property for this code. Seems like a waste akSpeaker.PlaceActorAtMe(akSpeaker.GetLeveledActorBase()) This alone should do the same thing. That is smaller for sure. Thank you. But it is still cycling thru the leveled list same as before.
Monoman1 Posted June 18, 2021 Posted June 18, 2021 23 minutes ago, giamel said: That is smaller for sure. Thank you. But it is still cycling thru the leveled list same as before. Right. Tricky. I think akSpeaker.PlaceActorAtMe(akSpeaker.GetLeveledActorBase().GetTemplate()) will work. Sort of. The actor will look the same but their outfit may be different due to leveledlists. You can't clone the clone though I've noticed using the same method.
giamel Posted June 18, 2021 Author Posted June 18, 2021 13 minutes ago, Monoman1 said: Right. Tricky. I think akSpeaker.PlaceActorAtMe(akSpeaker.GetLeveledActorBase().GetTemplate()) will work. Sort of. The actor will look the same but their outfit may be different due to leveledlists. You can't clone the clone though I've noticed using the same method. BRO! you nailed it. Thank you. I've been farting around with this for days.
giamel Posted July 9, 2021 Author Posted July 9, 2021 On 6/18/2021 at 3:10 PM, Monoman1 said: Right. Tricky. I think akSpeaker.PlaceActorAtMe(akSpeaker.GetLeveledActorBase().GetTemplate()) will work. Sort of. The actor will look the same but their outfit may be different due to leveledlists. You can't clone the clone though I've noticed using the same method. Another question please. So say I wanted akspeaker.SetFactionRank(PlayerBedOwnership, 1) on that newly cloned NPC. How would I go about doing that?
Monoman1 Posted July 11, 2021 Posted July 11, 2021 On 7/9/2021 at 4:43 PM, giamel said: Another question please. So say I wanted akspeaker.SetFactionRank(PlayerBedOwnership, 1) on that newly cloned NPC. How would I go about doing that? You'll have to explain more clearly what it is you're trying to do.
giamel Posted July 12, 2021 Author Posted July 12, 2021 On 7/11/2021 at 3:55 AM, Monoman1 said: You'll have to explain more clearly what it is you're trying to do. Ok, how bout this. So I use akSpeaker.PlaceActorAtMe(akSpeaker.GetLeveledActorBase().GetTemplate()) a new copy of the NPC is then spawned. is it possible to set attributes like aggression to 0 so it does not spawn aggressive?
Monoman1 Posted July 13, 2021 Posted July 13, 2021 18 hours ago, giamel said: Ok, how bout this. So I use akSpeaker.PlaceActorAtMe(akSpeaker.GetLeveledActorBase().GetTemplate()) a new copy of the NPC is then spawned. is it possible to set attributes like aggression to 0 so it does not spawn aggressive? It's tricky. I'm doing a little work that's fairly similar atm but with creatures. What I'm doing: akActor.SetAV("Aggression", 1) akActor.SetAV("Confidence", 3) ; Factions CheckFactions(akActor) akActor.StopCombatAlarm() akActor.Stopcombat() akActor.EvaluatePackage() CheckFactions() is basically a loop removing the creature from all known hostile vanilla factions. The problem is not all hostile factions are going to be vanilla skyrim factions. It's worked well for me so far though. Factions by far are going to be your biggest headache.
giamel Posted July 16, 2021 Author Posted July 16, 2021 On 7/13/2021 at 7:34 AM, Monoman1 said: It's tricky. I'm doing a little work that's fairly similar atm but with creatures. What I'm doing: akActor.SetAV("Aggression", 1) akActor.SetAV("Confidence", 3) ; Factions CheckFactions(akActor) akActor.StopCombatAlarm() akActor.Stopcombat() akActor.EvaluatePackage() CheckFactions() is basically a loop removing the creature from all known hostile vanilla factions. The problem is not all hostile factions are going to be vanilla skyrim factions. It's worked well for me so far though. Factions by far are going to be your biggest headache. Ok, will try tooling around w/ that. Thanks again.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.