ACE_fnc_setVehicleDamage

Description

Apply damage to a vehicle in a fashion compatable with ACE vehicle damage system.  Must be called from machine where target vehicle is local.

Parameters

_vehicleVehicle to damage [Object]
_ammotypeWeapon to detonate [String]
_positionLocation of weapon above terrain level when damage occurred, for direction calculations [Position3D]
_blast_damageBlast damage in BIS indirect fire units [Number]
_thermal_damageThermal damage in BIS indirect fire units [Number]
_rad_damageRadiation damage in BIS indirect fire units [Number]

Returns

nil

Example

[_poortank, "BombCore", (getPosATL _bomb), 250, 0, 0] spawn ACE_fnc_setVehicleDamage

Author

q1148 © 2010

Close