<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>https://rage.grandroleplay.ru/index.php?action=history&amp;feed=atom&amp;title=Gameplay%3A%3AsetWeatherTypeTransition</id>
	<title>Gameplay::setWeatherTypeTransition - История изменений</title>
	<link rel="self" type="application/atom+xml" href="https://rage.grandroleplay.ru/index.php?action=history&amp;feed=atom&amp;title=Gameplay%3A%3AsetWeatherTypeTransition"/>
	<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=Gameplay::setWeatherTypeTransition&amp;action=history"/>
	<updated>2026-07-24T20:00:40Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://rage.grandroleplay.ru/index.php?title=Gameplay::setWeatherTypeTransition&amp;diff=9977&amp;oldid=prev</id>
		<title>imported&gt;Shr0x: /* See also */</title>
		<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=Gameplay::setWeatherTypeTransition&amp;diff=9977&amp;oldid=prev"/>
		<updated>2024-07-05T18:49:08Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;See also&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;PNWParksFan 2017-02-18:&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;Mixes two weather types. If percentWeather2 is set to 0.0f, then the weather will be entirely of weatherType1, if it is set to 1.0f it will be entirely of weatherType2. If it&amp;#039;s set somewhere in between, there will be a mixture of weather behaviors. To test, try this in the RPH console, and change the float to different values between 0 and 1:&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;execute &amp;#039;NativeFunction.Natives.x578C752848ECFA0C(Game.GetHashKey(&amp;#039;&amp;#039;RAIN&amp;#039;&amp;#039;), Game.GetHashKey(&amp;#039;&amp;#039;SMOG&amp;#039;&amp;#039;), 0.50f);&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;Note that unlike most of the other weather natives, this native takes the hash of the weather name, not the plain string. These are the weather names and their hashes:&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;CLEAR	0x36A83D84&amp;lt;br&amp;gt;EXTRASUNNY	0x97AA0A79&amp;lt;br&amp;gt;CLOUDS	0x30FDAF5C&amp;lt;br&amp;gt;OVERCAST	0xBB898D2D&amp;lt;br&amp;gt;RAIN	0x54A69840&amp;lt;br&amp;gt;CLEARING	0x6DB1A50D&amp;lt;br&amp;gt;THUNDER	0xB677829F&amp;lt;br&amp;gt;SMOG	0x10DCF4B5&amp;lt;br&amp;gt;FOGGY	0xAE737644&amp;lt;br&amp;gt;XMAS	0xAAC9C895&amp;lt;br&amp;gt;SNOWLIGHT	0x23FB812B&amp;lt;br&amp;gt;BLIZZARD	0x27EA2814&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;/* OLD INVALID INFO BELOW */&amp;lt;br&amp;gt;Not tested. Based purely on disassembly. Instantly sets the weather to sourceWeather, then transitions to targetWeather over the specified transitionTime in seconds.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;If an invalid hash is specified for sourceWeather, the current weather type will be used.&amp;lt;br&amp;gt;If an invalid hash is specified for targetWeather, the next weather type will be used.&amp;lt;br&amp;gt;If an invalid hash is specified for both sourceWeather and targetWeather, the function just changes the transition time of the current transition.&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;mp.game.gameplay.setWeatherTypeTransition(sourceWeather, targetWeather, transitionTime);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
=== Required Arguments ===&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;sourceWeather:&amp;#039;&amp;#039;&amp;#039; Model hash or name&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;targetWeather:&amp;#039;&amp;#039;&amp;#039; Model hash or name&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;transitionPercent:&amp;#039;&amp;#039;&amp;#039; float&lt;br /&gt;
&lt;br /&gt;
===Return value===&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Undefined&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
// todo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
==See also==&lt;br /&gt;
{{Gameplay_definition_c}}&lt;br /&gt;
[[Category:Clientside API]]&lt;br /&gt;
[[Category:TODO: Example]]&lt;/div&gt;</summary>
		<author><name>imported&gt;Shr0x</name></author>
	</entry>
</feed>