Jump to content

FO4 CK Script Problem Need Help.


Recommended Posts

Posted (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 by PTZar

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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