Jump to content
Synchronized

Vehicles spawning as players join leading to explosions

Recommended Posts

So i tried to make a sort of persistent mission, i did this by saving the content with the "Copy mission to SQF" Module in Zeus then pasting the content in an init.sqf

 

Thing worked in singleplayer and editor Multiplayer, but when i load it in the dedicated server it seems as though vehicles spawn whenever a player joins leading to multiple vehicles on top of each other and making them explode.

 

Anybody know of a fix to this?

Share this post


Link to post
Share on other sites

init.sqf runs every time a player joins. You either need to run your spawn code after an isServer check, or move it to initServer.sqf. I'm sure there are other solutions as well. 

  • Like 2

Share this post


Link to post
Share on other sites

What Harzach said, I was half way through saying the same thing.

  • Haha 1

Share this post


Link to post
Share on other sites
18 hours ago, Harzach said:

init.sqf runs every time a player joins. You either need to run your spawn code after an isServer check, or move it to initServer.sqf. I'm sure there are other solutions as well. 

 

It fixed thanks.

 

But how do i make it so i can use the custom preset list for fortify work at the same time?

 

my initserver.sqf is like this


 

Quote

 

[west, 621, [
    
["Land_CncBarrierMedium_F",10],
["Land_HBarrier_3_F",15],
["Land_HBarrier_5_F",30],
["Land_HBarrier_Big_F",20],
["Land_HBarrier_1_F",15],
["Land_Plank_01_4m_F",5],
["Land_Plank_01_8m_F",10],
["Land_CncShelter_F",20],
["Land_BagBunker_Small_F",35],
["Land_BagBunker_Tower_F",50],
["Land_BagFence_Long_F",5],
["Land_BagFence_Short_F",10],
["Land_BagFence_Round_F",5],
["Land_SandbagBarricade_01_half_F",10],
["Land_SandbagBarricade_01_F",15],
["Land_SandbagBarricade_01_hole_F",20],
["Wire",10],
["Land_Timbers_F",15],
["Land_HelipadCircle_F",5],
["Land_IronPipes_F",20],
["Land_CamoNetVar_NATO",5],
["Fort_StoneWall_EP1",5],
["Land_fort_rampart",10],
["USMC_WarfareBUAVterminal",50],
["Land_MetalBarrel_F",1],
["Land_CncBarrier_F",15],
["Land_HBarrier_1_F",10],
["CampEastC",10],
["Land_MapBoard_F",5],
["Land_HBarrier_3_F",30],
["Land_HBarrier_5_F",50],
["Land_fort_artillery_nest",20],
["Land_CncBarrierMedium4_F",20]

]] call acex_fortify_fnc_registerObjects;

acex_fortify_locations pushBack [constructionCrate, 100, 100, 0, false];

 

 

And then 2 lines after i paste the zeus copied SQF, but this makes the custom objects list not functional.

Share this post


Link to post
Share on other sites
34 minutes ago, Synchronized said:

but this makes the custom objects list not functional.

 

Share the entire file, please. Wrap in spoilers so everyone doesn't have to scroll through it.

Share this post


Link to post
Share on other sites

Not for nothing, but why don't you place your objects in the editor and save your mission normally?

Share this post


Link to post
Share on other sites
4 hours ago, Harzach said:

Not for nothing, but why don't you place your objects in the editor and save your mission normally?

 

 

Because its too many items to place and wont be able to place all of them like the players did.

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

×