Difference between revisions of "0514"

From GTAMods Wiki
Jump to navigation Jump to search
(Created page with "{{Icon|VC}} '''SET_CHAR_CAN_BE_DAMAGED_BY_MEMBERS_OF_GANG''' <hr /> '''Description''' : Sets the character be damageable by members of the gang '''Syntax''' : 0514: set_ac...")
 
 
Line 1: Line 1:
{{Icon|VC}} '''SET_CHAR_CAN_BE_DAMAGED_BY_MEMBERS_OF_GANG'''
+
{{OpCode
<hr />
+
| games      = {{Icon|VC}}
'''Description'''
+
| command    = SET_CHAR_CAN_BE_DAMAGED_BY_MEMBERS_OF_GANG
: Sets the character be damageable by members of the [[gang]]
+
| description = Sets the character be damageable by members of the [[gang]]
'''Syntax'''
+
| syntax1    = 0514: set_actor [''char handle''] can_be_damaged_by_members_of_gang [''int1''] [''int2'']
: 0514: set_actor [''char handle''] can_be_damaged_by_members_of_gang [''int1''] [''int2'']
+
| p1t        = [''char handle'']
'''Parameter'''
+
| p1d        = The handle of the character
: [''char handle'']
+
| p2t        = [''int1'']
:: The handle of the character
+
| p2d        = [[Gang#Vice City|Gang number]]
: [''int1'']
+
| p3t        = [''int2'']
:: [[Gang#Vice City|Gang number]]
+
| p3d        = 0 = unable to be damaged, {{hint|1|or any value other than 0}} = able to be damaged (default)
: [''int2'']
+
}}
:: 0 = unable to be damaged, {{hint|1|or any value other than 0}} = able to be damaged (default)
 
  
This opcode allows the character to be immune from gun fire from members of the gang, including from any characters spawned as a [[ped type]] of that gang. The character can still be damaged by fists and area effects.
+
This opcode allows the character to be immune from gun fire from members of the gang, including from any characters spawned as a [[ped type]] of that gang. The character can still be damaged by fists and area effects. Due to a bug, all characters are permanently immune from gun fire from members of the unused gang number 8 (ped type GANG9).
  
 
== Keywords ==
 
== Keywords ==
 
actor, character, damage, damaged, member, gang
 
actor, character, damage, damaged, member, gang
 
[[Category:OpCodes]]
 

Latest revision as of 22:43, 27 June 2017

Vice City SET_CHAR_CAN_BE_DAMAGED_BY_MEMBERS_OF_GANG


Description
Sets the character be damageable by members of the gang
Syntax
0514: set_actor [char handle] can_be_damaged_by_members_of_gang [int1] [int2]
Parameter
[char handle]
The handle of the character
[int1]
Gang number
[int2]
0 = unable to be damaged, 1 = able to be damaged (default)

This opcode allows the character to be immune from gun fire from members of the gang, including from any characters spawned as a ped type of that gang. The character can still be damaged by fists and area effects. Due to a bug, all characters are permanently immune from gun fire from members of the unused gang number 8 (ped type GANG9).

Keywords

actor, character, damage, damaged, member, gang