Difference between revisions of "0414"

From GTAMods Wiki
Jump to navigation Jump to search
(updating page)
Line 1: Line 1:
 
{{Icon|trilogy}}
 
{{Icon|trilogy}}
 
<hr />
 
<hr />
<onlyinclude>{{#ifeq:{{{transcludesection|opcode}}}|opcode|
 
 
'''Description'''
 
'''Description'''
 
: Enables a free treatment for the player
 
: Enables a free treatment for the player
Line 14: Line 13:
 
: [[SET_FREE_HEALTH_CARE]]
 
: [[SET_FREE_HEALTH_CARE]]
  
This opcode sets a free treatment for the player. When enabled, if the player is wasted, he will not lose any weapons or cash after respawning. The free treatment works once only, so to allow free treatment again, you have to enable it through this opcode again. This opcode was unused in GTA III in the default script.
+
This opcode sets a free treatment for the player. When enabled, if the player is wasted, he will not lose any weapons or cash after respawning. The free treatment works once only, so to allow free treatment again, you have to enable it through this opcode again. This opcode was unused in GTA III in the default script.  
}}</onlyinclude>
+
 
 +
The value set with this opcode is saved in [[Saves_(GTA_3)#Block_16:_Player_info|block 16 of the save file]] in GTA III, [[Saves (GTA VC)#Block 18: Player Info|block 18]] in Vice City and in [[Saves_(GTA_SA)#Block_15:_Player_data|block 15]] in San Andreas.
  
 
== Keywords ==
 
== Keywords ==

Revision as of 22:08, 21 March 2015

GTA III Vice City San Andreas


Description

Enables a free treatment for the player

Syntax

0414: set_player [player handle] single_free_treatment [int]

Parameter

[player handle]
The handle of the player
[int]
0 = disable free treatment, 1 = enable free treatment

Native analog

SET_FREE_HEALTH_CARE

This opcode sets a free treatment for the player. When enabled, if the player is wasted, he will not lose any weapons or cash after respawning. The free treatment works once only, so to allow free treatment again, you have to enable it through this opcode again. This opcode was unused in GTA III in the default script.

The value set with this opcode is saved in block 16 of the save file in GTA III, block 18 in Vice City and in block 15 in San Andreas.

Keywords

set, toggle, player, free, treatment, hospital, wasted