Cobal Posted June 20, 2023 Author Share Posted June 20, 2023 Okay so I finally had time to finish the script. Here's the relevant bit in case it is useful to any future person thrawling the googles for answers: Function TickLoop() if UseVatsTeleport == 1 ;Debug.Notification("Ticker started") TickDummySound.PlayAndWait(PlayerRef) SendCustomEvent("SendTick") Self.Callfunctionnowait("CheckAP", none) EndIf EndFunction Function CheckAP() ; Debug.Notification("CheckAP started") Float CurrentAP = playerRef.GetValue(ActionPoints) If CurrentAP <= 1.0 Manager.StopVATS() StopTick() Else Self.Callfunctionnowait("TickLoop", none) EndIf EndFunction Thank you all for the input Link to comment Share on other sites More sharing options...
Recommended Posts