# SetGlobalTimeOverride

### Declaration

public static void **SetGlobalTimeOverride**([UnityEvent](https://docs.unity3d.com/ScriptReference/Events.UnityEvent.html) unityEvent, float interval = 1)

### Parameters

<table data-header-hidden data-full-width="false"><thead><tr><th width="224"></th><th></th></tr></thead><tbody><tr><td>unityEvent</td><td>The <a href="https://docs.unity3d.com/ScriptReference/Events.UnityEvent.html">UnityEvent</a> to subscribe the decrementation interval of duration to.</td></tr><tr><td>interval</td><td>The float value to decrement from duration.</td></tr></tbody></table>

### Description

This is only necessary for games that don't have real-time [StatusEffects](/status-effect-framework/1.7.0/type-specifics/classes/statuseffect.md).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://maraudical.gitbook.io/status-effect-framework/1.7.0/type-specifics/classes/statusmanager/setglobaltimeoverride.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
