<?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=Player%3A%3AresetRagdollTimer</id>
	<title>Player::resetRagdollTimer - История изменений</title>
	<link rel="self" type="application/atom+xml" href="https://rage.grandroleplay.ru/index.php?action=history&amp;feed=atom&amp;title=Player%3A%3AresetRagdollTimer"/>
	<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=Player::resetRagdollTimer&amp;action=history"/>
	<updated>2026-07-25T00:27:41Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://rage.grandroleplay.ru/index.php?title=Player::resetRagdollTimer&amp;diff=12043&amp;oldid=prev</id>
		<title>imported&gt;Shr0x в 09:29, 2 ноября 2024</title>
		<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=Player::resetRagdollTimer&amp;diff=12043&amp;oldid=prev"/>
		<updated>2024-11-02T09:29:16Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{ClientsideJsFunction}}&lt;br /&gt;
{{JSContainer|&lt;br /&gt;
&lt;br /&gt;
The `resetRagdollTimer` function resets the ragdoll timer for the player, effectively extending the duration they remain in a ragdoll state. When `setToRagdoll` is called, the player enters a ragdoll (physics-based) state for a specified time. By calling `resetRagdollTimer` before the timer expires, you can reset the timer, allowing the player to continue in the ragdoll state for the original duration again.&lt;br /&gt;
&lt;br /&gt;
This function is useful in scenarios where you want to dynamically control or extend the ragdoll effect based on gameplay events, without needing to call `setToRagdoll` repeatedly with new durations.&lt;br /&gt;
&lt;br /&gt;
=== Required Params ===&lt;br /&gt;
* None&lt;br /&gt;
&lt;br /&gt;
=== Return Value ===&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Undefined&amp;#039;&amp;#039;&amp;#039; – This function does not return a value.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
player.resetRagdollTimer();&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
// Example usage of resetRagdollTimer&lt;br /&gt;
&lt;br /&gt;
// Make the player enter ragdoll state for 5 seconds&lt;br /&gt;
player.setToRagdoll(5000, 5000, 0, true, true, true); &lt;br /&gt;
&lt;br /&gt;
// Wait less than 5 seconds before resetting the timer&lt;br /&gt;
setTimeout(() =&amp;gt; {&lt;br /&gt;
    player.resetRagdollTimer(); // Resets the timer, adding another 5 seconds to the ragdoll state&lt;br /&gt;
    mp.gui.chat.push(&amp;quot;Ragdoll timer reset!&amp;quot;); // Confirm action in chat&lt;br /&gt;
}, 3000); // Reset timer after 3 seconds, extending ragdoll state&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
== See Also ==&lt;br /&gt;
{{Player_function_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>