Jump to content
Thorimus

Spawn smoke column with Blastcore?

Recommended Posts

I’m using the Blastcore edited standalone mod. When I spawn a smoke column using the effects module, it seems to use a different smoke effect than the Blastcore one. Is there a command or somthing I can run to get an object to emit the Blastcore smoke without having to place a tank and destroy it every 5 minutes?

  • Like 1

Share this post


Link to post
Share on other sites

I used create vehicle to create the smoke effect using "test_EmptyObjectForSmoke" and attach it to the object. Will smoke until you detach and delete. Maybe this will help you.

  • Like 1

Share this post


Link to post
Share on other sites
17 minutes ago, thedubl said:

I used create vehicle to create the smoke effect using "test_EmptyObjectForSmoke" and attach it to the object. Will smoke until you detach and delete. Maybe this will help you.

Thank you, but I’m quite new to scripting and understood very little of the code in that link :/

Share this post


Link to post
Share on other sites

Sure, on my way to work, but after I will put together a quick example you can run in the editor. 

Share this post


Link to post
Share on other sites

Here you go. Unzip and place in your arma 3 missions folder. The call to the script is in the init.sqf.  This will spawn the crash site attach the smoke. After 300 seconds clean up and spawn it again.  Link

 

example: 

/*************************************************************
smoke column example
thedubl
nul = [] execVM "scripts\smokecolumn.sqf"
*************************************************************/

/****************************************************************
function to delete smoke
****************************************************************/
fnc_deleteObj = {
	_this addMPEventHandler ["MPKilled", {
		_this = _this select 0;
		{
			deleteVehicle _x;
		} forEach (_this getVariable ["effects", []]);
		if (isServer) then {
			deleteVehicle _this;
		};
	}];
	_this setDamage 1; 
};



/****************************************************************
get players position
spawn a crashed vehicle and attach smoke 
****************************************************************/
_pos = position player;
_veh = createVehicle ["Land_UWreck_MV22_F",_pos, [], 0, ""];

_smoke = "test_EmptyObjectForSmoke" createVehicle position _veh; _smoke attachTo[_veh,[0,-6,-2]];


sleep 1;

_veh setVehicleVarName "drone";drone = _veh;//give the vehicle a name
_crash = missionNamespace setVariable ["crashsite",_veh];// set the name as a global variable so that it broadcasted to all computers.

/****************************************************************
//sleep for 300 seconds then run again
****************************************************************/
sleep 300; 

/******Call the function to delete the smoke*********/
_smoke spawn {
sleep 1;
_this call fnc_deleteObj;
};

deleteVehicle crashsite;
null=[] execVM "scripts\smokecolumn.sqf";

 

  • Like 1
  • Thanks 1

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×