Time

The OFP command 'time' does not necessarily return the time passed after the beginning of the mission, but the time passed after the beginning of the current session. For instance, if you load a saved game, the time-variable is set to zero, regardless of how much time had passed since the beginning of the mission when the save was made. CWE introduces a solution to this problem: CWE_Time - a variable whose value is always equal to the time passed after the start of the mission.

So in scripts, there are now three different variables for measuring the time (in seconds):

  • time:
    • Time that has passed since the latest loading of saved game or the mission start.
  • _time:
    • Time that has passed since the beginning of the script.
  • CWE_Time:
    • Time that has passed since the beginning of the mission.

Back to Mission Editing

SJ-Studios - 2009-2016

Contents created for Cold War Enhanced by SJ-Studios is licensed under ARMA PUBLIC LICENSE SHARE ALIKE (APL-SA)

The wiki and the textual content of CWE Wiki is licensed under Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International