crow_x 1 Posted March 25, 2013 (edited) I really hate to post up something that is more than likely an easy fix for most, but I've been searching for an answer and between daily schedule I keep missing/forgetting something. Trying to add Loadout Function script to ini.sqf with revive and the objectives sqf to be called. Can get revive to start and objectives to start showing up as intended, but can't get option at ammo crate to save/load equipment. Any help to sort this out would be greatly appreciated. This is what i have in Ini.sqf currently: // Compile scripts Objectives_ini = compile preprocessFileLineNumbers "Objectives\Init.sqf"; call compile preprocessFile "=BTC=_revive\=BTC=_revive_init.sqf"; ["obj_", 35, 2] call Objectives_ini; }; waitUntil { !isNull player }; // Wait for player to initialize getLoadout = compile preprocessFileLineNumbers 'fnc_get_loadout.sqf'; setLoadout = compile preprocessFileLineNumbers 'fnc_set_loadout.sqf'; // Lets wait 10 seconds, hopefully all crates will spawn by then sleep 10; // Save default loadout loadout = [player] call getLoadout; // Add save/load loadout actions to all ammo boxes { _x addAction ["Save loadout", "fnc_get_loadout.sqf"]; _x addAction ["Load loadout", "fnc_set_loadout.sqf"]; } forEach nearestObjects [getpos player,["ReammoBox","ReammoBox_F"],15000]; // Load saved loadout on respawn player addEventHandler ["Respawn", { [player,loadout] call setLoadout; } ]; Again, I do apologize for double posting if that was the case and for any waste of anyones time for this. Edited March 26, 2013 by Crow_X Moving to actual thread of the save/loadout function, could Admin please remove this post...Thank you. Share this post Link to post Share on other sites