- Documentation
- Shared functions
- isWorldSpecialPropertyEnabled
Function
isWorldSpecialPropertyEnabled
Returns whether a special world property is enabled: the value from setWorldSpecialPropertyEnabled or the default (e.g. randomfoliage and vehicle_engine_autostart on by default, hovercars off).
Syntax
bool isWorldSpecialPropertyEnabled(string property)Arguments
propertystring- Property name.
Returns
true when enabled; false also for an unknown name.
Example
if isWorldSpecialPropertyEnabled("vehicle_engine_autostart") then
outputDebugString("Silniki zapalaja sie same")
end