Jump to content
  • 0

Animated Heli Crash: JIP for Burn effects?


MatthewK

Question

4 answers to this question

Recommended Posts

  • 1

in the player monitor there is a line of code which check for "SpawnableWreck" and spawns smoke for them on joining the server.

this class is defined in the cfgvehicles for (I think it was) 3 heliwreck types (standard dayz ones like uh1h and mi and a blackhawk, not 100pro sure.).

all other wreck you add as helicrash wreck will not spawn this smokeeffect after a relog, as it is not of the class "SpawnableWreck".

 

Link to comment
Share on other sites

  • 0

Got it working with this code at the bottom of my init.sqf: (just add more wrecks using the example)

if(!isServer) then {
private ["_objects"];
//Add as many wreck types as you like with:   + allMissionObjects "wreckName"
_objects = allMissionObjects "SpawnableWreck" + allMissionObjects "UH60Wreck_DZ" + allMissionObjects "UH1Wreck_DZ";
	{
		_nul = [_x,4,0,false,false] spawn BIS_Effects_Burn;
		
	} forEach _objects;
};

 

Link to comment
Share on other sites

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
  • Advertisement
  • Discord

×
×
  • Create New...