setHit (VBS2)
From Bohemia Interactive Community
| Editors, please check Policy: Scripting Command Page Syntax. |
Click on the images for descriptions
Introduced in
- Game:
- Virtual Battlespace 2
- Version:
- 1.00
Description
- Description:
- Damage / repair part of object. Damage 0 means fully functional, damage 1 means completely destroyed / dead.
Syntax
- Syntax:
- object setHit [part, damage]
- Parameters:
- object: Object -
- part: String -
- damage: Number -
- Return Value:
- Nothing
Examples
- Example 1:
vehicle player setHit ["engine", 1]
Additional Information
- Multiplayer:
- Behaviour unknown.
- See also:
- canStand
Notes
Notes
Notes
- Kronzky
-
Useful hit-zones are:
- Units
- "body"
- "hands"
- "legs"
- Vehicles (may or may not exist, depending on vehicle type and configuration). Any indexes (indicated by #) will start with 1, and continue on, depending on vehicle configuration:
- "engine"
- "fueltank"
- "glass_W" (W=window #, e.g. glass_1)
- "hull"
- "light_E_S" (E=front/rear index, S=left/right index, e.g. light_1_1)
- "main_trav" (turret)
- "track_T" (T=track #, e.g. track_2)
- "wheel_A_W" (A=axle #, W=wheel #, e.g. wheel_1_2)
- "wheel_A_W_damper" (as wheel_A_W)

