alexboy 11 Posted March 3, 2013 So im trying to give my c130 more then 240 flares.... and i have made a easy script that should work.... but its not for some reason... so here is the script file name / content init.sqs if (!isServer) exitWith {} _plane = _this select 0 [_plane] execvm "\c130KJ\scr\flare.sqf"; if ((speed _plane) > 1.0) then {_plane setpos [getpos _plane select 0,getpos _plane select 1,200];}; _plane flyinheight 200; [_plane] execvm "\c130KJ\scr\Vapour.sqf"; #quit exit flare.sqf _plane = _this select 0; _count = 0; while {(_count != 10)} do { _count = _count + 1; _plane addmagazine "240Rnd_CMFlare_Chaff_Magazine"; //_plane addmagazinecargo "240Rnd_CMFlare_Chaff_Magazine"; //hint _count; }; for some reason its not working.... its not loading ammo into the plane ??? i do the same script with another one of my planes and it works.... idk if i typed anything wrong with this one... i checked it with both of the files and they have the same thing... idk what im doing wrong.... Share this post Link to post Share on other sites
panther42 53 Posted March 3, 2013 init.sqs??? is this an .sqs, or .sqf file? Looks like a mix of the two... If this is your init.sqf, how are you passing the variable into the init??? _plane = _this select 0 -- Share this post Link to post Share on other sites
alexboy 11 Posted March 3, 2013 so should i do .sqf and put ; at the end of everything ? Share this post Link to post Share on other sites
panther42 53 Posted March 3, 2013 I would, as .sqs is the "old" language. Still used though in some addons/scripts. Get rid of the #quit, and exit. Again, if this is your init file, how are you passing the values into the init file? Or is this initC130 file, ran from the init file? Share this post Link to post Share on other sites
alexboy 11 Posted March 3, 2013 the init is in the c130 model folder :) Share this post Link to post Share on other sites
panther42 53 Posted March 3, 2013 ok, or you can make use of the Extended_Init_EventHandlers in your model config Share this post Link to post Share on other sites
alexboy 11 Posted March 3, 2013 (edited) how would i do that ??... also it still doesnt work it doesnt supply the plane with more flares... Edited March 3, 2013 by alexboy Share this post Link to post Share on other sites