0514

From GTAMods Wiki
Revision as of 22:43, 27 June 2017 by Spaceeinstein (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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