<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://g1r-mp.com/wiki/index.php?action=history&amp;feed=atom&amp;title=OnPlayerRangedImpact</id>
	<title>OnPlayerRangedImpact - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://g1r-mp.com/wiki/index.php?action=history&amp;feed=atom&amp;title=OnPlayerRangedImpact"/>
	<link rel="alternate" type="text/html" href="https://g1r-mp.com/wiki/index.php?title=OnPlayerRangedImpact&amp;action=history"/>
	<updated>2026-09-19T08:21:55Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.0</generator>
	<entry>
		<id>https://g1r-mp.com/wiki/index.php?title=OnPlayerRangedImpact&amp;diff=302&amp;oldid=prev</id>
		<title>QCherry: Update Lua event reference</title>
		<link rel="alternate" type="text/html" href="https://g1r-mp.com/wiki/index.php?title=OnPlayerRangedImpact&amp;diff=302&amp;oldid=prev"/>
		<updated>2026-08-14T22:31:59Z</updated>

		<summary type="html">&lt;p&gt;Update Lua event reference&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;!-- This page is generated from the verified Lua event definition: onPlayerRangedImpact. --&amp;gt;&lt;br /&gt;
= onPlayerRangedImpact =&lt;br /&gt;
Triggered when an authoritative arrow or bolt impacts a player or the world.&lt;br /&gt;
&lt;br /&gt;
== Availability ==&lt;br /&gt;
This event is available in &amp;#039;&amp;#039;&amp;#039;server-side&amp;#039;&amp;#039;&amp;#039; scripts.&lt;br /&gt;
&lt;br /&gt;
== Callback signature ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
onPlayerRangedImpact(ownerPlayerId, targetPlayerId, projectileId, shotId, weaponType, damage, healthAfter, killed, x, y, z)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Name !! Type !! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;ownerPlayerId&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;int&amp;lt;/code&amp;gt; || The shooting player ID.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;targetPlayerId&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;int&amp;lt;/code&amp;gt; || The impacted player ID, or the runtime&amp;#039;s no-player value.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;projectileId&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;int&amp;lt;/code&amp;gt; || The projectile ID.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;shotId&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;int&amp;lt;/code&amp;gt; || The shot sequence ID.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;weaponType&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;string&amp;lt;/code&amp;gt; || Either bow or crossbow.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;damage&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || Validated impact damage.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;healthAfter&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || Target health after the impact.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;killed&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;bool&amp;lt;/code&amp;gt; || Whether the target reached zero health.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;x&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || Impact X coordinate in metres.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;y&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || Impact Y coordinate in metres.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;z&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || Impact Z coordinate in metres.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
Handle the event:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; line&amp;gt;&lt;br /&gt;
addEventHandler(&amp;quot;onPlayerRangedImpact&amp;quot;, root, function(ownerPlayerId, targetPlayerId, projectileId, shotId, weaponType, damage, healthAfter, killed, x, y, z)&lt;br /&gt;
    outputDebugString(weaponType .. &amp;quot; impact at &amp;quot; .. x .. &amp;quot;, &amp;quot; .. y .. &amp;quot;, &amp;quot; .. z)&lt;br /&gt;
end)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Lua Events]]&lt;br /&gt;
[[Category:Server Events]]&lt;br /&gt;
[[Category:Ranged Events]]&lt;/div&gt;</summary>
		<author><name>QCherry</name></author>
	</entry>
</feed>