Quote from: Mazoliin on Fri 08/08/2008 12:36:52
This might, or might not work.
When you sheck if the timer is expired, aslo check if a bool is false, if it is, call the function and then set the bool to true.
this is not the problem, the problem is i cant call the function within the rep_execute.
the only way memberfunctions can called is within other memberfunctions.
Or with an specified object, but i dont know this object at this time, cause it can be generated by the developer somewhere in the game.
So the developer can write somewhere in the game.
GameTimeCalender myCalender;
myCalender.Increase();
but i want to implement the functionality,
that you can set an intervall at the beginning,
and then the Increase function must be called, when the timer_is_expired.
SSH: I know this alternative, but want to avoid it, if its possible,
because then i have to generate an object and set a date on suspicion in advance.