Arma 3 Editor - How to use setHit / how to damage vehicle parts

Опубликовано: 14 Октябрь 2017
на канале: Desperado070
5,391
55

Mission File: https://www.mediafire.com/folder/2phx...

-------------------------------------------------------------------------------------------------------
Code:

//Engine
VehicleName setHitPointDamage ["HitEngine", 1];
//Fuel
VehicleName setHitPointDamage ["HitFuel", 1];
//MainR
VehicleName setHitPointDamage ["HitHRotor", 1];
//TailR
VehicleName setHitPointDamage ["HitVRotor", 1];
//Hull
VehicleName setHitPointDamage ["HitHull", 1];

// Here you can find the names of the vehicle parts
https://community.bistudio.com/wiki/g...
// What we use the break the vehicle parts
https://community.bistudio.com/wiki/s...

//left front wheel
VehicleName sethit ["wheel_1_1_steering", 1]
//left back wheel
VehicleName sethit ["wheel_1_2_steering", 1]
//right front wheel
VehicleName sethit ["wheel_2_1_steering", 1]
//right back wheel
VehicleName sethit ["wheel_2_2_steering", 1]
//Left middle tire (trucks)
VehicleName setHit ["wheel_1_3_steering", 1];
//Right middle tire (trucks)
VehicleName setHit ["wheel_2_3_steering", 1];
//Truck only (last wheel)
VehicleName setHit ["wheel_1_4_steering", 1];
//Truck only (last wheel)
VehicleName setHit ["wheel_2_4_steering", 1];

// Code we using to break the wheels
https://community.bistudio.com/wiki/s...
// setHit doesn't work with vehicles anymore (used to)

-------------------------------------------------------------------------------------------------------
Extra info:
Watch out with putting the dmg on 1 at sudden parts.
Like if the hull is being broken the vehicle will explode xx seconds afterwards.
So for that just keep it at 0.7 to fully break it but not to make it explode.

If you got any questions or ideas leave a comment below

This video was created using content of Bohemia Interactive a.s.
Copyright © 2017 Bohemia Interactive a.s. All rights reserved.
See www.bistudio.com for more information.