Difference between revisions of "TASK CHAR ARREST CHAR"

From GTAMods Wiki
Jump to navigation Jump to search
 
Line 2: Line 2:
 
|np=2
 
|np=2
 
|p1t=Handle
 
|p1t=Handle
|p1d=Ped Handle
+
|p1d=Ped Handle (''cop'')
 
|p2t=Handle
 
|p2t=Handle
|p2d=Ped Handle
+
|p2d=Ped Handle (''guilty'')
 
}}
 
}}
  
The results of this function are either unknown or untested.
+
 
 +
== Description ==
 +
 
 +
 
 +
Tasks the selected ped (parameter 1) to 'arrest' the other ped (parameter 2). It is looks like this:<br/>
 +
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.<br/>
 +
'''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.
 +
<br/>
 +
<br/>
 +
'''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.

Latest revision as of 01:39, 21 March 2015

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.