GetTimecycleModifierIndexByName
Docslocal retval = GetTimecycleModifierIndexByName(modifierName)Parameters
| Name | Type | Description |
|---|---|---|
modifierName | char* | The timecycle modifier name. |
Returns
intReturns an integer value.
Examples
Official
local modifierIndex = GetTimecycleModifierIndexByName("underwater")
local currentIndex = GetTimecycleModifierIndex()
if currentIndex ~= -1 and currentIndex == modifierIndex then
print("we're actually using 'underwater' timecycle!")
end