Profitz Posted June 12, 2017 Share Posted June 12, 2017 How to use SetCriticalStage – Actor inside script extending perk? Is it possible? Getting “SetCriticalStage is not a function or does not exist” compiler error with this: Scriptname Fragments:Perks:TestScript Extends Perk Hidden Const Function Fragment_Entry_00(ObjectReference akTargetRef, Actor akActor) akTargetRef.SetCriticalStage((akTargetRef as Actor).CritStage_DisintegrateEnd) EndFunction Link to comment Share on other sites More sharing options...
shavkacagarikia Posted June 13, 2017 Share Posted June 13, 2017 Use cast as you do when passing parameter. (akTargetRef as Actor).setcriticalstage((akTargetRef as Actor).CritStage_DisintegrateEnd) Link to comment Share on other sites More sharing options...
Profitz Posted June 13, 2017 Author Share Posted June 13, 2017 Yay! It’s working :) Thanks a lot! Link to comment Share on other sites More sharing options...
Recommended Posts