TASK CHAR ARREST CHAR

From GTAMods Wiki
Revision as of 01:39, 21 March 2015 by FL1K3R (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
TASK_CHAR_ARREST_CHAR
Number of parameters: 2
Parameter #TypeDescription
1.HandlePed Handle (cop)
2.HandlePed Handle (guilty)
Return value:
TypeDescription
None


Description

Tasks the selected ped (parameter 1) to 'arrest' the other ped (parameter 2). It is looks like this:
1`st ped (if he have pistol) permanent aiming at 2`nd ped. If 2`nd ped enters a veicle as driver - 1`st ped jack him out and aim again? but don`t follow 2`nd ped. You have to use other native to make 1`st ped follow 2`nd.
NOTE: It was tested with many 'random' peds. For example the brave ped (if he is parameter 1) will attack parameter 2 ped with barehands. Cowardly ped (Parameer 1) - will run away from parameter 2 ped. If parameter 1 - is a cop - he will aim at parameter 2 ped till he will do a crime. If player will be in parameter 1 - he will automaticly attack parameter 2 ped.

P.S. It is looks like this native is used by original game engine for arresting (and following) Niko with 0-1 star wanted level.