Jump to content

I need a short timer that is not influenced by slow time effects.


Cobal

Recommended Posts

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

  • Recently Browsing   0 members

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