I have been wrestling with deleting the test_EmptyObjectForSmoke object after it has been spawned by the server using the method proposed by DarkDruid from Bohemia (the link appears below) but I must be having a moment of total noobness because it is just not working quite right.
http://forums.bistudio.com/showthread.php?165184-Delete-Fire-Effect/page2
I wondered whether anyone had a suggestion as to how to get this working.
The code in quesion is also run server-side and is:
fn_deleteParticleSource = {
private ["_wokka","_emitterArray"];
_wokka = _this select 0;
diag_log format["fn_deleteParticleSource: -- >> object is typeOf %1",typeOf _wokka];
_emitterArray = _wokka getVariable "effects";
diag_log format["fn_deleteParticleSource: -- >> emmitterArray is %1",_emitterArray];
{diag_log format["deleting emiter %1",_x]; deleteVehicle _x} forEach _emitterArray;
};
Thanks in advance for any suggestions.