mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
29 lines
624 B
Plaintext
29 lines
624 B
Plaintext
#include "..\script_component.hpp"
|
|
/*
|
|
* Author: Jaynus, NouberNou
|
|
* Adds a round to the blacklist (will be ignored).
|
|
*
|
|
* Arguments:
|
|
* 0: Projectile <OBJECT>
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Example:
|
|
* [_projectile] call ace_frag_fnc_addBlackList
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
params ["_projectile"];
|
|
TRACE_2("addBlackList",_projectile,typeOf projectile);
|
|
|
|
_projectile setVariable [QGVAR(blacklisted)];
|
|
_projectile removeEventHandler [
|
|
"HitPart",
|
|
_projectile getVariable [QGVAR(hitPartEventHandler), -1]
|
|
];
|
|
_projectile removeEventHandler [
|
|
"Explode",
|
|
_projectile getVariable [QGVAR(explodeEventHandler), -1]
|
|
]; |