playMaker

Author Topic: Keeping Track of Grandfather Time[SOLVED]  (Read 1535 times)

littleredcloud

  • Playmaker Newbie
  • *
  • Posts: 6
Keeping Track of Grandfather Time[SOLVED]
« on: December 09, 2013, 03:46:15 AM »
Hi,
So I am trying to set up a group of FSMs which allows me to track time, and then move things on as a consequence.
For example, I count the seconds, when I hit x (currently 10) seconds, I add one "day". I would loop this process to then add a "month/year" when they "days" hit x.
The problem is the only action that does any good counting seems to be "time since startup", which I tried resetting when it hit 10, but of course it doesn't want to be reset!
My FSM uses the TimeSinceStartup to set a float. I convert that to an INT, and then do an IntCompare to check if it hit's 10. I use a SendEvent to send that to the "DayManager"FSM to add one, then try to reset the TimeSinceStartup float, but the GUI clearly shows it doesn't reset it.
Is there no action that simply counts time, and can be reset as part of an FSM?
Any help appreciated as always! :)
« Last Edit: December 09, 2013, 01:14:56 PM by jeanfabre »

littleredcloud

  • Playmaker Newbie
  • *
  • Posts: 6
Re: Keeping Track of Grandfather Time
« Reply #1 on: December 09, 2013, 06:17:17 AM »
Doh, why didn't I just use a wait?....sigh...
I guess the problem is solved. :)