Difference between revisions of "010D"

From GTAMods Wiki
Jump to navigation Jump to search
 
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
<code>010D=2,%1d% %2d%</code><br>
+
{{Icon|t}} '''ALTER_WANTED_LEVEL'''
'''Description''': Sets the player's current wanted level<br>
+
<hr />
'''Parameter 1''': Player handle<br>
+
'''Description'''
'''Parameter 2''': Integer<br>
+
: Sets the player's current [[wanted level]]
'''Supports''': GTA3, Vice City, San Andreas<br>
+
'''Syntax'''
 +
: 010D: set_player [''player handle''] wanted_level_to [''int'']
 +
'''Parameter'''
 +
: [''player handle'']
 +
:: The [[0053|handle of the player]]
 +
: [''int'']
 +
:: Wanted level (0-6)
 +
'''Native analog'''
 +
: [[ALTER_WANTED_LEVEL]]
  
This can set the player's current wanted level from 0 to 6.
+
This sets the player's current wanted level from 0 to 6. It will not exceed the maximum wanted level set by opcode [[01F0]]. Negative values have no effect while values higher than six will not exceed six.
  
==Keywords==
+
== Keywords ==
set, player, current, wanted, level
+
set, change, alter, player, current, wanted, level
  
 
[[Category:OpCodes]]
 
[[Category:OpCodes]]

Latest revision as of 12:15, 16 August 2015

GTA III Vice City San Andreas ALTER_WANTED_LEVEL


Description

Sets the player's current wanted level

Syntax

010D: set_player [player handle] wanted_level_to [int]

Parameter

[player handle]
The handle of the player
[int]
Wanted level (0-6)

Native analog

ALTER_WANTED_LEVEL

This sets the player's current wanted level from 0 to 6. It will not exceed the maximum wanted level set by opcode 01F0. Negative values have no effect while values higher than six will not exceed six.

Keywords

set, change, alter, player, current, wanted, level