ScriptingExamples/PedAttackPlayer: Difference between revisions

Jump to navigation Jump to search
no edit summary
(Created page with "For GTA III, Vice City, and San Andreas you can use natives or the GTAC functions to set a ped to consider something as a threat, and the ped will target/attack it.<br> {{JSCode|1= ped.setThreatSearch(1); // To make the ped target the player ped.heedThreats = true; // To enable attacking threats }} == Notes == * A list of ped [https://wiki.gtaconnected.com/Defines/III#GTA_III_-_Threat_Defines threat types for GTA 3]. Vice City threats aren't documented, but they're the...")
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
For GTA III, Vice City, and San Andreas you can use natives or the GTAC functions to set a ped to consider something as a threat, and the ped will target/attack it.<br>
{{DISPLAYTITLE:Ped Attack Player Example}}
 
== Description ==
For GTA III, Vice City, and San Andreas, you can use natives or the GTAC functions to set a ped to consider something as a threat and the ped will target/attack it.<br>
 
== Code ==
{{JSCode|1=
{{JSCode|1=
ped.setThreatSearch(1); // To make the ped target the player
ped.setThreatSearch(1); // To make the ped target the player
2,776

edits

Navigation menu