GMS_RC/@GMS/addons/GMS/Compiles/Vehicles/fn_vehicleHit.sqf

17 lines
671 B
Plaintext
Raw Normal View History

2023-09-23 14:05:31 +00:00
/*
By Ghostrider [GRG]
Copyright 2016
--------------------------
License
--------------------------
All the code and information provided here is provided under an Attribution Non-Commercial ShareAlike 4.0 Commons License.
http://creativecommons.org/licenses/by-nc-sa/4.0/
*/
#include "\x\addons\GMS\Compiles\Init\GMS_defines.hpp"
2023-09-23 14:05:31 +00:00
if !(local (_this select 0)) exitWith {};
params ["_vehicle", "_source", "_damage", "_instigator"];
//[format["GMS_fnc_vehicletHit: _vehicle = %1 | typeOf _vehicle %2 | _instigator %32",_vehicle,typeOf _vehicle, _instigator]] call GMS_fnc_log;
if !(isPlayer _instigator) exitWith {};
[_unit,_instigator] call GMS_fnc_alertVehicles;