Jump to content

StopCombatAlarm() Function causing CTD


rcoll

Recommended Posts

Hi this script I am working on is designed to work alongside the calm effect in vanilla but I have run into a problem...

Scriptname MyDontReportCrimeScript extends ActiveMagicEffect

Faction Property CalmFaction Auto

Faction OCF

Event OnEffectStart(Actor akTarget, Actor akCaster)
	OCF = akTarget.GetCrimeFaction()
	akTarget.addtofaction(CalmFaction)
	akCaster.addtofaction(CalmFaction)
	akTarget.SetCrimeFaction(CalmFaction)
EndEvent

Event OnEffectFinish(Actor akTarget, Actor akCaster)
		akTarget.SetCrimeFaction(OCF)
		akTarget.removefromfaction(CalmFaction)
		akCaster.removefromfaction(CalmFaction)
		akTarget.StopCombatAlarm()
EndEvent

You see what happens is that last line "akTarget.StopCombatAlarm()" causes a ctd. I am unsure exactly why this happens and would appreciate any help.

 

Link to comment
Share on other sites

  • 4 months later...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...