• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Solved] Real-time timestamp for triggers ?

Status
Not open for further replies.
Hello,

I have some triggers where I'd like to have the current time elasped since the game start. I prefer real-time, not game-time (that can goes faster).

Is there a simple way to get this time ?

Otherwise, is there simpler than the system below ? (I arbitrary chose 0.10s as step, but it could be 0.30 or any other value).

  • Clock VariableCreator
    • Events
      • Time - Elapsed game time is 0.00 seconds
    • Conditions
    • Actions
      • Set ClockTimestamp = 0.00
      • Countdown Timer - Start ClockTimer as a Repeating timer that will expire in 0.10 seconds
  • Clock Tick
    • Events
      • Time - ClockTimer expires
    • Conditions
    • Actions
      • Set ClockTimestamp = (ClockTimestamp + (Initial time for ClockTimer))
 
Status
Not open for further replies.
Top