Difference between revisions of "FelonyStartChaseObj"

From Nomad DB
(Created page with "Starts a chase of the specified faction on the specified pawn using custom chase parameters. == Syntax == <syntaxhighlight lang="lua"> FelonyStartCha...")
 
Line 16: Line 16:
 
</syntaxhighlight>
 
</syntaxhighlight>
  
== Factions ==
+
== Parameters ==
 +
=== Factions ===
 
{| class="wikitable"
 
{| class="wikitable"
 
! ID
 
! ID

Revision as of 19:20, 16 April 2020

Starts a chase of the specified faction on the specified pawn using custom chase parameters.

Syntax

FelonyStartChaseObj(targetEntityId, felonyType, customChaseLevel, startAction)
  • targetEntityId (string): ID of the pawn to start the chase on
  • felonyType (number): ID of the faction to chase the target entity
  • customChaseLevel (string): The custom chase parameters to use (corresponds to an item in the ChaseLevelParameters library)
  • startAction (number): Behavior to start the chase with (2 = default; 3 = search)

Example

Starts a police chase with custom parameters on the local player.

FelonyStartChaseObj(GetLocalPlayerEntityId(), 0, "ChaseLevelParameters.9223372068194800362", 2)

Parameters

Factions

ID Name
0 Police
1 FBI
3 Prime_Eight
6 Tezcas
9 Auntie Shu Boys
10 580s
11 Umeni
12 Bratva
15 Sons of Ragnarok

Related Pages