ACE3/addons/frag/functions/fnc_addBlacklist.sqf

30 lines
683 B
Plaintext
Raw Normal View History

2024-05-18 09:16:43 +00:00
#include "..\script_component.hpp"
/*
* Author: Jaynus, NouberNou
2024-07-30 21:08:59 +00:00
* Adds a round to the blacklist (will be ignored) and removes any ace_frag event handlers added to it.
2024-05-18 09:16:43 +00:00
*
* Arguments:
* 0: Projectile <OBJECT>
*
* Return Value:
* None
*
* Example:
* [_projectile] call ace_frag_fnc_addBlackList
*
* Public: No
*/
params ["_projectile"];
TRACE_2("addBlackList",_projectile,typeOf projectile);
2024-05-18 09:16:43 +00:00
2024-07-30 18:22:16 +00:00
_projectile setVariable [QGVAR(blacklisted), true];
_projectile removeEventHandler [
"HitPart",
_projectile getVariable [QGVAR(hitPartEventHandler), -1]
];
_projectile removeEventHandler [
"Explode",
_projectile getVariable [QGVAR(explodeEventHandler), -1]
2024-07-30 18:22:16 +00:00
];