Difference between revisions of "0514"
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}} | + | {{OpCode |
− | + | | games = {{Icon|VC}} | |
− | + | | command = SET_CHAR_CAN_BE_DAMAGED_BY_MEMBERS_OF_GANG | |
− | + | | description = Sets the character be damageable by members of the [[gang]] | |
− | + | | syntax1 = 0514: set_actor [''char handle''] can_be_damaged_by_members_of_gang [''int1''] [''int2''] | |
− | + | | p1t = [''char handle''] | |
− | + | | p1d = The handle of the character | |
− | + | | p2t = [''int1''] | |
− | + | | p2d = [[Gang#Vice City|Gang number]] | |
− | + | | p3t = [''int2''] | |
− | + | | p3d = 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 | ||
− | |||
− |
Latest revision as of 22:43, 27 June 2017
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