Difference between revisions of "0326"
(Created page with "{{Icon|trilogy}} '''START_CHAR_FIRE''' <hr /> '''Description''' : Creates a fire on the character '''Syntax''' : 0326: [''var''] = create_actor [''char handle''] fire '''Param...") |
|||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
− | {{Icon| | + | {{OpCode |
− | + | | games = {{Icon|t}} | |
− | + | | command = START_CHAR_FIRE | |
− | + | | description = Creates a fire on the character | |
− | + | | syntax1 = 0326: [''var''] = create_actor [''char handle''] fire | |
− | + | | p1t = [''char handle''] | |
− | '' | + | | p1d = The handle of the character |
− | + | | p2t = [''var''] | |
− | + | | p2d = Variable to store the handle of the fire | |
− | + | | native = [[START_CHAR_FIRE]] | |
− | + | }} | |
− | |||
− | |||
− | This creates a fire on the character. The fire damages the character like any fire and can harm the player. The character is set to flee but it can be interrupted by assigning it an [[objective]]. The fire can be extinguished with the Firetruck's hose or a Fire Extinguisher, or removed using | + | This creates a fire on the character. The fire damages the character like any fire and can harm the player. The character is set to flee but it can be interrupted by assigning it an [[objective]]. The fire can be extinguished with the Firetruck's hose or a Fire Extinguisher, or removed using opcodes [[02D1]] or [[031A]]. To prevent the character from burning to death but still have it on fire like in the Firefighter mission, the player must be in a vehicle and the character set to only be damaged by player trough opcode [[02A9]]. Exiting the vehicle will make the fire start hurting the character; getting back into the vehicle will stop hurting it. The fire will oddly randomly put itself out if the character is interrupted. |
== Keywords == | == Keywords == | ||
Line 19: | Line 17: | ||
== See also == | == See also == | ||
− | * [[ | + | * {{Icon|t}} [[02CF]], creates a fire at the coordinates point |
− | + | * {{Icon|t}} [[0325]], creates a fire on the vehicle | |
− | [[ |
Latest revision as of 00:29, 20 November 2016
- Description
- Creates a fire on the character
- Syntax
- 0326: [var] = create_actor [char handle] fire
- Parameter
- [char handle]
- The handle of the character
- [var]
- Variable to store the handle of the fire
- Native analog
- START_CHAR_FIRE
This creates a fire on the character. The fire damages the character like any fire and can harm the player. The character is set to flee but it can be interrupted by assigning it an objective. The fire can be extinguished with the Firetruck's hose or a Fire Extinguisher, or removed using opcodes 02D1 or 031A. To prevent the character from burning to death but still have it on fire like in the Firefighter mission, the player must be in a vehicle and the character set to only be damaged by player trough opcode 02A9. Exiting the vehicle will make the fire start hurting the character; getting back into the vehicle will stop hurting it. The fire will oddly randomly put itself out if the character is interrupted.
Keywords
create, start, fire, actor, character