<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.rage.mp/w/index.php?action=history&amp;feed=atom&amp;title=Player%3A%3AisInMeleeCombat</id>
	<title>Player::isInMeleeCombat - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.rage.mp/w/index.php?action=history&amp;feed=atom&amp;title=Player%3A%3AisInMeleeCombat"/>
	<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=Player::isInMeleeCombat&amp;action=history"/>
	<updated>2026-06-04T17:05:26Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://wiki.rage.mp/w/index.php?title=Player::isInMeleeCombat&amp;diff=4115&amp;oldid=prev</id>
		<title>Marty uploader: yay</title>
		<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=Player::isInMeleeCombat&amp;diff=4115&amp;oldid=prev"/>
		<updated>2017-05-06T23:43:56Z</updated>

		<summary type="html">&lt;p&gt;yay&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Notes: The function only returns true while the ped is: &amp;lt;br&amp;gt;A.) Swinging a random melee attack (including pistol-whipping)&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;B.) Reacting to being hit by a melee attack (including pistol-whipping)&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;C.) Is locked-on to an enemy (arms up, strafing/skipping in the default fighting-stance, ready to dodge+counter). &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;You don&amp;#039;t have to be holding the melee-targetting button to be in this stance; you stay in it by default for a few seconds after swinging at someone. If you do a sprinting punch, it returns true for the duration of the punch animation and then returns false again, even if you&amp;#039;ve punched and made-angry many peds&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;player.isInMeleeCombat();&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
=== Required Arguments ===&lt;br /&gt;
===Return value===&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Boolean&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;
{{Player_function_c}}&lt;br /&gt;
[[Category:Clientside API]]&lt;br /&gt;
[[Category:TODO: Example]]&lt;/div&gt;</summary>
		<author><name>Marty uploader</name></author>
	</entry>
</feed>