UnrealScripterAI
Discord ↗
Link Copied to Clipboard
×
"make a weather system"
// Create a Weather System UWeatherSystem::UWeatherSystem() { // Create a list of weather types WeatherTypes.Add(EWeatherType::Sunny); WeatherTypes.Add(EWeatherType::Rainy); // Add more weather types here // Set the current weather type CurrentWeatherType = EWeatherType::Sunny; } // Apply the current weather type void UWeatherSystem::ApplyWeatherEffects() { ApplyWeatherEffects(CurrentWeatherType); }