Difference between revisions of "FelonyStartChase"
From Nomad DB
m |
SpeckBomber (talk | contribs) |
||
(3 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
+ | {{Page_WD2}} | ||
Starts a systemic chase of the specified [[Affiliation|faction]] on the specified [[Pawn|pawn]]. | Starts a systemic chase of the specified [[Affiliation|faction]] on the specified [[Pawn|pawn]]. | ||
Line 6: | Line 7: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
* '''targetEntityId''' (string): [[EntityId|ID]] of the [[Pawn|pawn]] to start the chase on | * '''targetEntityId''' (string): [[EntityId|ID]] of the [[Pawn|pawn]] to start the chase on | ||
− | * '''felonyType''' (number): [[# | + | * '''felonyType''' (number): [[#Factions|ID]] of the [[Affiliation|faction]] to chase the target entity |
* '''felonyLevel''' (number): Felony level to start the chase at (1 - 5) | * '''felonyLevel''' (number): Felony level to start the chase at (1 - 5) | ||
* '''startAction''' (number): Behavior to start the chase with (2 = default; 3 = search) | * '''startAction''' (number): Behavior to start the chase with (2 = default; 3 = search) | ||
− | |||
== Example == | == Example == | ||
Line 17: | Line 17: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | == Factions == | + | == Parameters == |
+ | === Factions === | ||
{| class="wikitable" | {| class="wikitable" | ||
! ID | ! ID | ||
Line 26: | Line 27: | ||
|- | |- | ||
| 1 | | 1 | ||
− | | | + | | FBI |
|- | |- | ||
| 3 | | 3 |
Latest revision as of 20:39, 27 October 2020
Starts a systemic chase of the specified faction on the specified pawn.
Syntax
FelonyStartChase(targetEntityId, felonyType, felonyLevel, startAction)
- targetEntityId (string): ID of the pawn to start the chase on
- felonyType (number): ID of the faction to chase the target entity
- felonyLevel (number): Felony level to start the chase at (1 - 5)
- startAction (number): Behavior to start the chase with (2 = default; 3 = search)
Example
Starts a police chase on the local player.
FelonyStartChase(GetLocalPlayerEntityId(), 0, 3, 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 |