eggy785 8 Posted November 29, 2018 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
Sy8282 21 Posted November 29, 2018 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
mrwolv 46 Posted November 30, 2018 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
eggy785 8 Posted December 1, 2018 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
Zze 5 Posted December 1, 2018 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
Matthias1987 59 Posted December 1, 2018 My server keeps on crashing too. Always when the plane is supposed to spawn.. Share this post Link to post Share on other sites
Zze 5 Posted December 1, 2018 I am using airdrops without issue Share this post Link to post Share on other sites
Emazeg 4 Posted December 5, 2018 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
mrwolv 46 Posted December 5, 2018 (edited) 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 December 5, 2018 by mrwolv Share this post Link to post Share on other sites
eggy785 8 Posted December 11, 2018 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