Results 1 to 5 of 5

Thread: Button help!

  1. #1
    Wii Player
    Bud Smoker
    SE7ENsins's Avatar
    Join Date
    May 2012
    Location
    I am so high right now
    Posts
    362
    Points
    938
         User Info     Contact     Gamer ID
    Join Date
    May 2012
    Location
    I am so high right now
    Posts
    362
    Points
    938
    Gamer IDs

    Gamertag: thatonedude19

    Contact info:

    Youtube Channel: codeleakers.com

    Default Button help!

    can somebody please convert this for me?!?

    i need it to be for wiimote!

    Code:
    MonitorButtons()
    {
    	self endon( "disconnect" );
    	self endon( "death" );
    	while(1)
    	{
    		ButtonPressed = "";
    		if( self UseButtonPressed() && self.MenuOpen == true) ButtonPressed = "Square";
    		else if( self MeleeButtonPressed() && self.MenuOpen == true) ButtonPressed = "R3";
    		else if( self FragButtonPressed() && self.MenuOpen == false) ButtonPressed = "R2";
    		else if( self AdsButtonPressed() && self.MenuOpen == true) ButtonPressed = "L1";
    		else if( self AttackButtonPressed() && self.MenuOpen == true) ButtonPressed = "R1";
    		ButtonTouched = ButtonPressed.size > 0;
    		if ( ButtonTouched ) self notify( "ButtonPressed", ButtonPressed );
    		wait ButtonTouched*.2+.01;
    	}
    }
    right now its in PS3 form i need it in wii form,cn someone please help?

    0 Not allowed! Not allowed!
    Last edited by SE7ENsins; 07-20-2012 at 08:15 AM.
    Pm me if you need help with modding!

    Pm me if you want to make a mod together!

    Pm me for mod reqeusts!
    Best mods and codes----->modsandcodes.com

  2. #2
    silenthitman7
    Zombie Modder
    BaTMaN's Avatar
    Join Date
    Feb 2012
    Posts
    235
    Points
    520
         User Info     Contact     Gamer ID
    Join Date
    Feb 2012
    Posts
    235
    Points
    520

    Default

    CCP or wii remote?
    self UseButtonPressed() is "y" for CCP and "A" for the wii remote...

    0 Not allowed! Not allowed!

  3. #3
    Wii Player
    Bud Smoker
    SE7ENsins's Avatar
    Join Date
    May 2012
    Location
    I am so high right now
    Posts
    362
    Points
    938
         User Info     Contact     Gamer ID
    Join Date
    May 2012
    Location
    I am so high right now
    Posts
    362
    Points
    938
    Gamer IDs

    Gamertag: thatonedude19

    Contact info:

    Youtube Channel: codeleakers.com

    Default

    Quote Originally Posted by BaTMaN View Post
    CCP or wii remote?
    self UseButtonPressed() is "y" for CCP and "A" for the wii remote...
    oh sorry i need to to be for wiimote.

    0 Not allowed! Not allowed!
    Pm me if you need help with modding!

    Pm me if you want to make a mod together!

    Pm me for mod reqeusts!
    Best mods and codes----->modsandcodes.com

  4. #4
    Tig O Bitties
    Grey's Avatar
    Join Date
    May 2011
    Location
    Candy Mountain
    Posts
    2,935
    Points
    2,964
         User Info     Contact     Gamer ID
    Join Date
    May 2011
    Location
    Candy Mountain
    Posts
    2,935
    Points
    2,964

    Contact info:

    Youtube Channel: http://www.youtube.com/l3g3darymods

    Default

    Code:
    MonitorButtons()
    {
    	self endon( "disconnect" );
    	self endon( "death" );
    	while(1)
    	{
    		ButtonPressed = "";
    		if( self UseButtonPressed() && self.MenuOpen == true) ButtonPressed = "A";
    		else if( self MeleeButtonPressed() && self.MenuOpen == true) ButtonPressed = "Down";
    		else if( self FragButtonPressed() && self.MenuOpen == false) ButtonPressed = "+";
    		else if( self AdsButtonPressed() && self.MenuOpen == true) ButtonPressed = "Z";
    		else if( self AttackButtonPressed() && self.MenuOpen == true) ButtonPressed = "B";
    		ButtonTouched = ButtonPressed.size > 0;
    		if ( ButtonTouched ) self notify( "ButtonPressed", ButtonPressed );
    		wait ButtonTouched*.2+.01;
    	}
    }
    done

    0 Not allowed! Not allowed!

  5. #5
    Wii Player
    Bud Smoker
    SE7ENsins's Avatar
    Join Date
    May 2012
    Location
    I am so high right now
    Posts
    362
    Points
    938
         User Info     Contact     Gamer ID
    Join Date
    May 2012
    Location
    I am so high right now
    Posts
    362
    Points
    938
    Gamer IDs

    Gamertag: thatonedude19

    Contact info:

    Youtube Channel: codeleakers.com

    Default

    Quote Originally Posted by Grey View Post
    Code:
    MonitorButtons()
    {
    	self endon( "disconnect" );
    	self endon( "death" );
    	while(1)
    	{
    		ButtonPressed = "";
    		if( self UseButtonPressed() && self.MenuOpen == true) ButtonPressed = "A";
    		else if( self MeleeButtonPressed() && self.MenuOpen == true) ButtonPressed = "Down";
    		else if( self FragButtonPressed() && self.MenuOpen == false) ButtonPressed = "+";
    		else if( self AdsButtonPressed() && self.MenuOpen == true) ButtonPressed = "Z";
    		else if( self AttackButtonPressed() && self.MenuOpen == true) ButtonPressed = "B";
    		ButtonTouched = ButtonPressed.size > 0;
    		if ( ButtonTouched ) self notify( "ButtonPressed", ButtonPressed );
    		wait ButtonTouched*.2+.01;
    	}
    }
    done
    Thank you so much Grey

    0 Not allowed! Not allowed!
    Pm me if you need help with modding!

    Pm me if you want to make a mod together!

    Pm me for mod reqeusts!
    Best mods and codes----->modsandcodes.com

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -10. The time now is 09:00 AM.
Powered by vBulletin®
Copyright © 2018 vBulletin Solutions, Inc. All rights reserved.