As the title suggests, I am setting curTime = host.timer_getWallTime() in a while loop and checking against that time for an if statement. Is it bad to call "host.timer_getWallTime()" so rapidly? I'm new to python in general and am trying to create a basic timer that would call a function every X serconds.
BF2 Time - BF2 Technical Information Wiki is what I used to grab the time.
Object Reference - BF2 Technical Information Wiki Also saw this but I haven't seen an example using one of these timers to get a general idea of how they work. (Such as setting it to trigger a function at X seconds)
EDIT:
Never mind, I realize now that bf2.Timer's first parameter can be/is a function reference. Got it!
BF2 Time - BF2 Technical Information Wiki is what I used to grab the time.
Object Reference - BF2 Technical Information Wiki Also saw this but I haven't seen an example using one of these timers to get a general idea of how they work. (Such as setting it to trigger a function at X seconds)
EDIT:
Never mind, I realize now that bf2.Timer's first parameter can be/is a function reference. Got it!