Interface administrators, moderator
2,770
edits
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:Ped Attack Player Example}} | {{DISPLAYTITLE:Ped Attack Player Example}} | ||
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 | == 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 |