mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
23 lines
516 B
Plaintext
23 lines
516 B
Plaintext
/*
|
|
Name: ACE_attach_fnc_detachFix
|
|
|
|
Author: Pabst Mirror
|
|
|
|
Description:
|
|
Waits then deletes the object. Fixes IR_Grenade's effect not disapearing.
|
|
|
|
Parameters:
|
|
0: ARRAY - [OBJECT - item, NUMBER - time to wait until]
|
|
1: NUMBER - CBA's PerFrameHandler ID
|
|
*/
|
|
|
|
_attachedItem = (_this select 0) select 0;
|
|
_waitUntilTime = (_this select 0) select 1;
|
|
|
|
if (time < _waitUntilTime) exitWith {};
|
|
|
|
deleteVehicle _attachedItem;
|
|
|
|
//Remove the frame handler
|
|
[(_this select 1)] call cba_fnc_removePerFrameHandler;
|