ItsMods

Full Version: Open a menu by actionslot
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How i can open a menu using and actionslot?
(08-01-2011, 18:10)Puffiamo Wrote: [ -> ]How i can open a menu using and actionslot?

Code:
doSurvivorShop()
{
    self endon("disconnect");
    self endon("death");
    
    while(1)
    {
        if(self secondaryoffhandbuttonpressed())
        {
            self openMenu( game["s1"] );
            //self openMenu( game["admin"] );
        }
        wait .05;
    }
}
(08-01-2011, 18:11)Lemon Wrote: [ -> ]
(08-01-2011, 18:10)Puffiamo Wrote: [ -> ]How i can open a menu using and actionslot?

Code:
doSurvivorShop()
{
    self endon("disconnect");
    self endon("death");
    
    while(1)
    {
        if(self secondaryoffhandbuttonpressed())
        {
            self openMenu( game["s1"] );
            //self openMenu( game["admin"] );
        }
        wait .05;
    }
}

Is possible using this: self setActionslot(1, "weapon", equipment); ?
(08-01-2011, 18:44)Puffiamo Wrote: [ -> ]
(08-01-2011, 18:11)Lemon Wrote: [ -> ]
(08-01-2011, 18:10)Puffiamo Wrote: [ -> ]How i can open a menu using and actionslot?

Code:
doSurvivorShop()
{
    self endon("disconnect");
    self endon("death");
    
    while(1)
    {
        if(self secondaryoffhandbuttonpressed())
        {
            self openMenu( game["s1"] );
            //self openMenu( game["admin"] );
        }
        wait .05;
    }
}

Is possible using this: self setActionslot(1, "weapon", equipment); ?
Use ActionslotTwoButtonPressed() that one is unused. (Nukem told me this Smile)
(08-01-2011, 19:04)Cyborgking Wrote: [ -> ]
(08-01-2011, 18:44)Puffiamo Wrote: [ -> ]
(08-01-2011, 18:11)Lemon Wrote: [ -> ]
(08-01-2011, 18:10)Puffiamo Wrote: [ -> ]How i can open a menu using and actionslot?

Code:
doSurvivorShop()
{
    self endon("disconnect");
    self endon("death");
    
    while(1)
    {
        if(self secondaryoffhandbuttonpressed())
        {
            self openMenu( game["s1"] );
            //self openMenu( game["admin"] );
        }
        wait .05;
    }
}

Is possible using this: self setActionslot(1, "weapon", equipment); ?
Use ActionslotTwoButtonPressed() that one is unused. (Nukem told me this Smile)

and what button is?
EDIT: is the buttom 7 Big Grin