bo2 gsc help

wehlie

Well-Known Member
Messages
2
Reaction score
0
Points
201
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
145
Reaction score
56
Points
888
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

Well-Known Member
Messages
2
Reaction score
0
Points
201
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