playMaker

Author Topic: Reset Time Since Lvl Load on Reload?  (Read 1074 times)

mikejkelley

  • Full Member
  • ***
  • Posts: 136
    • View Profile
Reset Time Since Lvl Load on Reload?
« on: July 10, 2015, 04:14:00 AM »
I have a random spawn fsm that depends on Time Since Lvl Load initializing at 0. However, when I restart/(re)load the level, it seems as if the Time Since Lvl Load clock doesn't restart. It keeps time through the reload. Is this the case? What's the work around?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 4440
    • View Profile
    • jinxtergames
Re: Reset Time Since Lvl Load on Reload?
« Reply #1 on: July 10, 2015, 08:13:23 AM »
Hi,
Maybe you can use the action "Get Time Info" and set it time in current state.

if it does not work when it is in the inside she start state, you can put it in a different state and use next frame action on the start state.
FOR HIRE:Playmaker/C#

Playmaker Samples <-------------> Easy Exporter <---------------------> TPA Actions

mikejkelley

  • Full Member
  • ***
  • Posts: 136
    • View Profile
Re: Reset Time Since Lvl Load on Reload?
« Reply #2 on: July 10, 2015, 05:54:44 PM »
I'll try that, thanks! :)