Shane Martin 38 Report post Posted October 8, 2015 Hi,What would be the easiest way to addactions to players for a specific object, eg "Exile_Construction_Flag_Static".I know the CfgInteractionMenus would be adequate but since that is in the client's .pbo it is untouchable.Is there anyway to custom call a interaction menu in the mission folder that will execute for all players?Many thanks,Shane Share this post Link to post Share on other sites
Warsheep 126 Report post Posted October 9, 2015 Move the CfgInteractionMenus to ur missions Folder and forced client to load the missionsCfgInteractionMenus and not the default one. Share this post Link to post Share on other sites
Shane Martin 38 Report post Posted October 9, 2015 How would I go about doing this?Adding it to the exilecustomcode, creating a new file and adding them in there and calling it via init.sqf?Regards,Shane Share this post Link to post Share on other sites
Torchgodz 112 Report post Posted October 9, 2015 Shane you can overwrite any of the code you want by using the:class CfgExileCustomCode{ /* You can overwrite every single file of our code without touching it. To do that, add the function name you want to overwrite plus the path to your custom file here. If you wonder how this works, have a look at our bootstrap/fn_preInit.sqf function. Simply add the following scheme here: <Function Name of Exile> = "<New File Name>"; Example: ExileClient_util_fusRoDah = "myaddon\myfunction.sqf"; */};But if you use infiSTAR it doesn't like scroll wheel menus that why i cant use igiLOAD anymore cause it keeps banning my players. Share this post Link to post Share on other sites
Shane Martin 38 Report post Posted October 9, 2015 I can't move the CfgInteractionMenus to the mission as it's a part of the config.cpp in the clients pbo file.Since CfgInteractionMenus doesn't have a function name, how would that work? Shane you can overwrite any of the code you want by using the:class CfgExileCustomCode{ /* You can overwrite every single file of our code without touching it. To do that, add the function name you want to overwrite plus the path to your custom file here. If you wonder how this works, have a look at our bootstrap/fn_preInit.sqf function. Simply add the following scheme here: <Function Name of Exile> = "<New File Name>"; Example: ExileClient_util_fusRoDah = "myaddon\myfunction.sqf"; */};But if you use infiSTAR it doesn't like scroll wheel menus that why i cant use igiLOAD anymore cause it keeps banning my players.Have you changed _CAP = true; to _CAP = false; ?Shane Share this post Link to post Share on other sites
Torchgodz 112 Report post Posted October 9, 2015 Have you changed _CAP = true; to _CAP = false; ?Shaneholy crap i have been searching the crap out of the igiload files but its part of infiSTAR thank you so much. Share this post Link to post Share on other sites
Shane Martin 38 Report post Posted October 9, 2015 holy crap i have been searching the crap out of the igiload files but its part of infiSTAR thank you so much. No problems Share this post Link to post Share on other sites
Allah Akbar CSGORumble.com 1 Report post Posted October 10, 2015 Hi,I need help too... For example I want to add an action to an ammo box, what i have to do ? Thx Share this post Link to post Share on other sites
hieve 42 Report post Posted October 25, 2015 (edited) if its just that one ammobox - do in editor/script:( https://community.bistudio.com/wiki/addAction )this addAction ["This is a Action", "YOURSCRIPT.sqf"]you can write code instead of yourscript.sqf also.for more you need to add a eventhandler Edited November 11, 2015 by hieve 1 Share this post Link to post Share on other sites
[TBI] Liam 37 Report post Posted April 8, 2016 Hey, I have recently tried to add a custom script to an object so far i have this CUP_A2_ch_office_b = this Player addAction ["Ammo","Ammo.sqf"]; can someone tell me what is wrong with this please? Share this post Link to post Share on other sites