Shane Martin

Adding actions to objects

10 posts in this topic

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

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
Advertisement

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

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

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
     Have you changed 

_CAP = true; to _CAP = false; ?


Shane

holy 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

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

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 by hieve
1 person likes this

Share this post


Link to post
Share on other sites

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
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.