mail2345 Posted May 3, 2009 Share Posted May 3, 2009 I'm trying to make a weapon that when fired, copies it self to the NPC's inventory, sends it into a frenzy, force equips the gun, and revives people it kills. The only problem is that it crashes. Not instantly, but a few seconds after I shoot some one in a crowded area(megaton center area).When there are a few people around, it does not crash as often.The pistol is a regular, but renamed pistol(ChaosPistol) that uses the EnchChaos effect. The EnchChaos object effect has auto calculate, and uses the ChaosEffect with Touch, 0 area, one second duration and does not activate for creatures or dead people. The ChaosEffect base effect runs the ChaosSpread script, has the self, touch, target, no magnitude and Display Name only flags. here is the ChaosSpread script:scn ChaosSpread Begin ScriptEffectStart if getav variable10 == 1 return endif else player.setav variable10 1 if getav Variable10 == 0 additem ChaosPistol 1 additem Ammo10mm 36 EquipItem ChaosPistol 1 setAv Variable10 2 setAv Confidence 5 setAv Aggression 5 RemoveFromAllFactions setAV brainCondition 0 setAv Assistance 0 ; try to restart combat so he picks up his new confidence scaonactor endif if GetDead == 1 resurrect endif endif End EDIT: Turns out the issue was GetDead or resurrect acting up. Replacing both with a heath check worked. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.