Tuesday, September 6, 2016

How to Make an Autofire Script

An autofire script is a script used in video games that essentially enables turbo fire. In many PC games, you must click the mouse once to fire one shot. Turbo fire will allow you to click the mouse once and fire many shots in a row. With autofire, you hold the mouse down and instead of firing one shot, your weapon will fire multiple shots. If you have access to the source files for a game, you can add a script that enable autofire when you hold down a mouse button. Autofire scripts are often used in first person shooter video games.

Instructions

    1

    Open and define your script by using the following code:

    RButton::

    loop

    This will open a script that will work when you press the right button on your mouse. You may substitute "RButton" for any mouse button. For example, to bind this script to the left mouse button, substitute "Rbutton" with "LButton."

    2

    Define the timing between actions when you hold down the button by entering the following code:

    Sleep 0.0001

    This sets the delay between clicks. The time is set in milliseconds and may be changed depending on how often you wish to fire your weapon when you hold the button down.

    3

    Define the script's action by using the following code:

    GetKeyState, RButtonState, RButton, P

    This tells the script to see if the right mouse button is pressed, and if it is, to continually enact the action assigned to the right mouse button in the game. Again, you may substitute the right mouse button for any button on your mouse.

    4

    Tell the script to terminate when you release the button by using the following code:

    if RButtonState = U

    break

    MouseClick, right

    This tells the script to stop when the button is released. You may substitute "RButton" for any button on your mouse.

    5

    End the scripts by using the following code:

    return

    6

    Bring the entire script together. For example, if you were using the right mouse button for your autofire script, the entire script would look like this:

    RButton::

    Loop

    Sleep 0.0001

    GetKeyState, RButtonState, RButton, P

    if RButtonState = u

    break

    MouseClick, Right

    return



  • How to change the Volume Licensing product key on a computer

    support.microsoft.com/kb/328874

    May 22, 2013 Describes how to change the product key for a Volume Licensing installation of Windows XP.


  • How to enable JavaScript in a web browser?

    support.microsoft.com/gp/howtoscript

    Apr 01, 2013 Learn how to turn on scripting in your browser and enhance your browsing experience.


  • Recipe for how to make Lox smoked salmon at home Caleb ...

    www.calebclark.org/?p=1377

    Learn to make simple Lox (Salmon) at home using only your refrigerator, salt, sugar and a few days waiting.


  • How-To Geek - For Geeks, By Geeks.

    www.howtogeek.com

    Includes help, tutorials, tips and how-to guides for Windows and Linux.


  • How to make a movie

    indiemoviemaking.com

    How to make a movie step by step. From writing a script to production to final movie distribution.


  • wikiHow - How to do anything

    www.wikihow.comRelationships Hobbies and Crafts

    Wiki Work together to make how to better for everyone. Find ways to get started or take our tour.


  • Best Way To Make Money Online - How I made $9000 in one

    www.youtube.com/watch?v=q3Imf9l9OIY

    CLICK HERE - http://goo.gl/OLloN - Start Making Money Every 60 Seconds Right NOW! Best Way To Make Money Online - How I made $9000 in one week The power of ...


  • How To Do Things How To Articles & How To Videos

    www.howtodothings.com

    Learn how to do (almost) anything at HowToDoThings! Explore instructive how-to articles and videos make things, solve problems, be happy!


  • How to Write a Script Outline The 8 Essential Plot Points

    scribemeetsworld.com/2011/screenplay-writing/how-to-write-a-script...

    Writing a script outline is easy once you know the 8 plot points in every story. Learn more about them before writing your next script outline.


  • How to Create a Website - Free & Easy Tutorial for Beginners

    2createawebsite.com

    A free tutorial site that teaches beginners how to create a website. Includes WordPress tutorials, web design tips and more.

0 comments:

Post a Comment