bo2 gsc help

wehlie

Known Member
Messages
2
Points
101
I need help coding a function for my menu, I want to take a pre existing function for example thermal version and make it so wen u turn it on in the menu u can also turn it on and off with down on dpad so its sort of has the same process as nac mod but its with the vision
 

CF4_99

Veteran
Messages
122
Points
663
This is an example of something you could do for that.

C++:
Example()
{
    if(!isDefined(self.VisionBind))
    {
        self.VisionBind = true;
        while(isDefined(self.VisionBind))
        {
            if(self ActionSlotTwoButtonPressed())
            {
                if(!isDefined(self.ThermalBind))
                {
                    self.ThermalBind = true;
                    //Whatever vision you're wanting turned on.
                }
                else
                {
                    self.ThermalBind = undefined;
                    //Whatever vision you're wanting turned off.
                }
            }
            wait .5;
        }
    }
    else
    {
        self.VisionBind = undefined;
        //Whatever vision you're wanting turned off;
    }
}
 
Last edited:

wehlie

Known Member
Messages
2
Points
101
This is an example of something you could do for that.

C++:
Example()
{
    if(!isDefined(self.VisionBind))
    {
        self.VisionBind = true;
        while(isDefined(self.VisionBind))
        {
            if(self ActionSlotTwoButtonPressed())
            {
                if(!isDefined(self.ThermalBind))
                {
                    self.ThermalBind = true;
                    //Whatever vision you're wanting turned on.
                }
                else
                {
                    self.ThermalBind = undefined;
                    //Whatever vision you're wanting turned off.
                }
            }
            wait .5;
        }
    }
    else
    {
        self.VisionBind = undefined;
        //Whatever vision you're wanting turned off;
    }
}
This is an example of something you could do for that.

C++:
Example()
{
    if(!isDefined(self.VisionBind))
    {
        self.VisionBind = true;
        while(isDefined(self.VisionBind))
        {
            if(self ActionSlotTwoButtonPressed())
            {
                if(!isDefined(self.ThermalBind))
                {
                    self.ThermalBind = true;
                    //Whatever vision you're wanting turned on.
                }
                else
                {
                    self.ThermalBind = undefined;
                    //Whatever vision you're wanting turned off.
                }
            }
            wait .5;
        }
    }
    else
    {
        self.VisionBind = undefined;
        //Whatever vision you're wanting turned off;
    }
}
do you have twitter??
 

Top