PTZar Posted April 18, 2023 Posted April 18, 2023 (edited) I need some help on fixing this script Scriptname F4NVChallengesStyleScript extends Quest Faction Property RaiderFaction Auto Const Perk Property RaiderKiller01Perk Auto Const int raiderCount = 0 bool completed = false Function UpdateRaiderCount() raiderCount += 1 Debug.Notification("You have killed 1 raiders.") if raiderCount >= 100 Debug.Notification("You have killed 100 raiders!") Game.GetPlayer().AddPerk(RaiderKiller01Perk ) Debug.Notification("You have received the perk!") completed = true endif EndFunction Event OnDeath(Actor akActor, Actor akKiller) if (akKiller == Game.GetPlayer()) if (akActor.GetFactionRank(RaiderFaction)) >= 1 UpdateRaiderCount() endif endif endEvent Error Report: 1. \F4NVChallengesStyleScript.psc(24,0): new event ondeath cannot be defined because the script is not flagged as native. I have no idea how to fix this. Edited April 19, 2023 by PTZar
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now