Headerman Posted May 2, 2021 Posted May 2, 2021 Hi guys, I am attempting to run a function every 30 seconds that will monitor a counter. I want to write the function something simple like this: Function Advancer() If (Myquest.GetStage <= 40) && (specific_counter == <insert code for a number greater than previous check>) Myquest.SetStage += 1 endif endevent I am not sure if its possible to check if the integer counter has advanced? How could i write this?
VersuchDrei Posted May 2, 2021 Posted May 2, 2021 If by check you mean a debug message then something like: Debug.Notification("Stage is: " + Myquest.GetStage()) Also SetStage is a function, not a property so your line has to be something like: Myquest.SetStage(Myquest.GetStage() + 1)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.