MatthewK Posted February 5, 2016 Report Share Posted February 5, 2016 Has anyone got the heli crash burn effects to work for people who join the server after the crash has spawned? People who join after the crash has spawned don't see any smoke or fire. I'm trying to figure out how to fix that. thanks in advance. Link to comment Share on other sites More sharing options...
1 seelenapparat Posted February 5, 2016 Report Share Posted February 5, 2016 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 More sharing options...
0 MatthewK Posted February 5, 2016 Author Report Share Posted February 5, 2016 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 More sharing options...
0 seelenapparat Posted February 5, 2016 Report Share Posted February 5, 2016 thats nice. :) Link to comment Share on other sites More sharing options...
0 MatthewK Posted February 5, 2016 Author Report Share Posted February 5, 2016 10 minutes ago, seelenapparat said: thats nice. :) Yeah, your post put me on the right track. Cheers for that :) Link to comment Share on other sites More sharing options...
Question
MatthewK
Has anyone got the heli crash burn effects to work for people who join the server after the crash has spawned?
People who join after the crash has spawned don't see any smoke or fire. I'm trying to figure out how to fix that.
thanks in advance.
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now