Jump to content
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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×