GolovaRaoul

Executing Script through CfgInterActionMenu ?

4 posts in this topic

Hello,

I'm trying to write a script in which if a player is near a weed plant, he will harvest the weed. But is it even possible to execute a script thgrough the CfgInterActionMenu ?

My interaction menu looks like this
 

Spoiler

    class Weed
    {
        targetType = 2;
        target = "CUP_p_fiberPlant_EP1";

        class Actions 
        {
            class HarvestWeed: ExileAbstractAction
            {
                title = "Harvest the Weed";
                condition = "('Exile_Item_Knife' in (magazines player))";
                action = "Custom\weed.sqf";
            };
        };
    };

I can see the scroll action but I get a script not found when trying to execute it. Any help is appreciated ^^

GolovaRaoul

Share this post


Link to post
Share on other sites
Advertisement

to make sure that you aren't doing anything wrong inside your weed.sqf... paste just this in there...Only this..

player switchAction "medicStart"; 

 

Share this post


Link to post
Share on other sites

Your not calling a file or anything. Just pointing at it???? 

action = "Custom\weed.sqf";

thats Ur problem

 

1 person likes this

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.