Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Event OnStoryAssaultActor(ObjectReference akVictim, ObjectReference akAttacker, Location akLocation, Int aiCrime)
- Faction VictimCrimeFaction = (akVictim as Actor).GetCrimeFaction()
- Utility.Wait(1.0)
- If (VictimCrimeFaction == None) && (Game.QueryStat("Assaults") > 0)
- Game.IncrementStat("Assaults", -1)
- Debug.Trace("Assault victim had no crime faction, stat decreased by 1")
- else
- Debug.Trace("Assault victim had crime faction, count in stats as intended")
- endif
- Stop()
- EndEvent
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement