Jump to content
  • 0

deleting test_EmptyObjectForSmoke


Ghostrider-GRG

Question

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.

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Discord

×
×
  • Create New...