Player::resetRagdollTimer: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
No edit summary
Line 1: Line 1:
 
This resets the timer for the [[Player::setToRagdoll|setToRagdoll]] function.
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">player.resetRagdollTimer();</syntaxhighlight>
<syntaxhighlight lang="javascript">player.resetRagdollTimer();</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
None
===Return value===
===Return value===
*'''Undefined'''
*'''Undefined'''
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
// todo
player.setToRagdoll(5000, 5000, 0, true, true, true); // sets to ragdoll for 5 seconds
<wait less than 5 seconds>
player.resetRagdollTimer();  // sets to ragdoll for an additional 5 seconds
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==

Revision as of 20:22, 17 April 2021

This resets the timer for the setToRagdoll function.

Syntax

player.resetRagdollTimer();

Required Arguments

None

Return value

  • Undefined

Example

player.setToRagdoll(5000, 5000, 0, true, true, true); // sets to ragdoll for 5 seconds
<wait less than 5 seconds>
player.resetRagdollTimer();  // sets to ragdoll for an additional 5 seconds

See also