Jump to content

[LE] Broken Script or just a bad writing


Univers123

Recommended Posts

Im trying to make my own script and add it to the perk, this script allow player to feed on humans corpse but it also feed vampire i have already make cannibal animation play and all that but no matter what i do it doesnt feed vampires. Script look like this :

 

Scriptname PRKF__03011D38 Extends Perk Hidden
Function Fragment_6(ObjectReference akTargetRef, Actor akActor)
Game.GetPlayer().StartCannibal(akTargetRef as Actor)
PlayerVampireQuestScript.VampireFeed()
EndFunction
PlayerVampireQuestScript Property PlayerVampireQuest Auto
I dont really know if i should sommehow link Playervampirescript to this script or do something else so it would be nice to have someones help me
Link to comment
Share on other sites

Your script had wrong syntax!

Scriptname PRKF__03011D38 extends Perk Hidden

Function Fragment_6(ObjectReference akTargetRef, Actor akActor)

  Game.GetPlayer().StartCannibal(akTargetRef as Actor)
  PlayerVampireQuest.VampireFeed()                                    ; "<-- compare with your version"

EndFunction

PlayerVampireQuestScript Property PlayerVampireQuest auto

another way could be that:

Scriptname PRKF__03011D38 extends Perk Hidden

Function Fragment_6(ObjectReference akTargetRef, Actor akActor)

  Game.GetPlayer().StartCannibal(akTargetRef as Actor)
  (PlayerVampireQuest as PlayerVampireQuestScript).VampireFeed()      ; "<-- compare with your version"

EndFunction

Quest Property PlayerVampireQuest auto                                ; a quest and not a script property
Edited by ReDragon2013
Link to comment
Share on other sites

  • Recently Browsing   0 members

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