Jump to content

Forums Announcement

Read-Only Mode for Announcements & Changelogs

Dear Survivors, we'd like to inform you that this forum will transition to read-only mode. From now on, it will serve exclusively as a platform for official announcements and changelogs.

For all community discussions, debates, and engagement, we encourage you to join us on our social media platforms: Discord, Twitter/X, Facebook.

Thank you for being a valued part of our community. We look forward to connecting with you on our other channels!

Stay safe out there,
Your DayZ Team

Sign in to follow this  
eggy785

Air drops

Recommended Posts

Does my init look right with the code as keep getting errors

 

 

 

class CustomMission: MissionServer
}
   ref AirDrop AirDropClass; // Class definition

      void CustomMission()
     {
    AirDropClass = new AirDrop;        
    }

    float TimerSlice; // Timeslice
    override void OnUpdate( float timeslice )
    {
    super.OnUpdate( timeslice );
     // FPS Fix
     TimerSlice += timeslice;
    if (TimerSlice >= AirDropClass.TimesliceMultiplyier)
    {
    AirDropClass.CreateAirDrop();
    TimerSlice = 0;    
    }

Share this post


Link to post
Share on other sites

are airdrops working at the minute last i heard there was a problem that was a while ago though

Share this post


Link to post
Share on other sites

airdrops are broken atm for code for the init is

 

  ref AirDrop AirDropClass; // Class definition
    void CustomMission()
    {
   	AirDropClass = new AirDrop;		
    }    
    float TimerSlice; // Timeslice
    override void OnUpdate( float timeslice )
    {
    	super.OnUpdate( timeslice );
    
    	// FPS Fix
    	TimerSlice += timeslice;
    	if (TimerSlice >= AirDropClass.TimesliceMultiplyier)
    	{
    		AirDropClass.CreateAirDrop();
    		TimerSlice = 0;	
     	}
    }

 

Share this post


Link to post
Share on other sites
On 11/29/2018 at 8:41 PM, Sy8282 said:

are airdrops working at the minute last i heard there was a problem that was a while ago though

thanks m8.

Share this post


Link to post
Share on other sites
On 11/29/2018 at 11:29 AM, eggy785 said:

Does my init look right with the code as keep getting errors

 

 

 

class CustomMission: MissionServer
}
   ref AirDrop AirDropClass; // Class definition

      void CustomMission()
     {
    AirDropClass = new AirDrop;        
    }

    float TimerSlice; // Timeslice
    override void OnUpdate( float timeslice )
    {
    super.OnUpdate( timeslice );
     // FPS Fix
     TimerSlice += timeslice;
    if (TimerSlice >= AirDropClass.TimesliceMultiplyier)
    {
    AirDropClass.CreateAirDrop();
    TimerSlice = 0;    
    }

do you also have an include line somewhere  for airdrop.c?

Share this post


Link to post
Share on other sites

I am using airdrops without issue

Share this post


Link to post
Share on other sites
On 12/1/2018 at 3:16 PM, Zze said:

I am using airdrops without issue

would you mind sharing how you have it in your init.c file?  

Share this post


Link to post
Share on other sites
1 hour ago, Emazeg said:

would you mind sharing how you have it in your init.c file?  

paste in this section but airdrops are broken atm they dont work nd no fix as of today

 

class CustomMission: MissionServer   <--------------------------------------------
}                <--------------------------------------------

//Airdrops//
   ref AirDrop AirDropClass; // Class definition

      void CustomMission()
     {
    AirDropClass = new AirDrop;        
    }

    float TimerSlice; // Timeslice
    override void OnUpdate( float timeslice )
    {
    super.OnUpdate( timeslice );
     // FPS Fix
     TimerSlice += timeslice;
    if (TimerSlice >= AirDropClass.TimesliceMultiplyier)
    {
    AirDropClass.CreateAirDrop();
    TimerSlice = 0;    
    }

//Airdrops End///

Edited by mrwolv

Share this post


Link to post
Share on other sites
On 12/1/2018 at 1:11 PM, Zze said:

do you also have an include line somewhere  for airdrop.c?

yes i did mate sorry.

Share this post


Link to post
Share on other sites
Sign in to follow this  

×