Univers123 Posted September 20, 2017 Share Posted September 20, 2017 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 More sharing options...
foamyesque Posted September 20, 2017 Share Posted September 20, 2017 As always, the first step in debugging scripts is checking to make sure your properties are filled out. Have you done so? Link to comment Share on other sites More sharing options...
ReDragon2013 Posted September 20, 2017 Share Posted September 20, 2017 (edited) 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 autoanother 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 September 20, 2017 by ReDragon2013 Link to comment Share on other sites More sharing options...
Recommended Posts