Difference between revisions of "054A"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
+ | {{OpCode | ||
+ | | games = {{Icon|VC}} {{Icon|SA}} | ||
+ | | command = SET_CHAR_CAN_BE_SHOT_IN_VEHICLE | ||
+ | | description = Makes the character immune to a damage while in a vehicle | ||
+ | | syntax1 = 054A: set_actor [''char handle''] can_be_shot_in_a_car [''int''] | ||
+ | | p1t = [''char handle''] | ||
+ | | p1d = The handle of the character | ||
+ | | p2t = [''int''] | ||
+ | | p2d = 0 = can't be damaged, 1 = can be damaged | ||
+ | }} | ||
+ | |||
This opcode sets whether the char can be shot in a vehicle. In vice city, the player character will not be knocked down by shotgun when this opcode is used on player. | This opcode sets whether the char can be shot in a vehicle. In vice city, the player character will not be knocked down by shotgun when this opcode is used on player. | ||
+ | |||
+ | == Keywords == | ||
+ | shoot, vehicle, shotgun, knockdown |
Revision as of 06:04, 20 November 2024
SET_CHAR_CAN_BE_SHOT_IN_VEHICLE
- Description
- Makes the character immune to a damage while in a vehicle
- Syntax
- 054A: set_actor [char handle] can_be_shot_in_a_car [int]
- Parameter
- [char handle]
- The handle of the character
- [int]
- 0 = can't be damaged, 1 = can be damaged
This opcode sets whether the char can be shot in a vehicle. In vice city, the player character will not be knocked down by shotgun when this opcode is used on player.
Keywords
shoot, vehicle, shotgun, knockdown