America's Army/Console Scripting

Note: Pretty much anything in this will now get you banned from TWL.

In-game binding
Hit ~ to bring down console then type:
 * bind [key] [command]


 * Example: bind x say Good Job

The X key is now permanently bound (User.ini modified) to say "Good Job". say can be replaced with teamsay, commoradio, commoshout, commowhisper, commosquad, commohand</tt>, or any of the actions listed below. If you do a commobinding, refer to the Commo command list below to see which numbers to use for which commo commands.


 * Example: bind x commoradio 1</tt>

This will make you radio "Move out" according to the commoradio list below due to the number 1</tt> in the binding. Multiple bindings can be done on the fly also (illegal in TWL). To add extra binds to a key use "|" with a space on either side.


 * Example: bind x teamsay Reloading! | reload</tt>

When you press X, this bind will say "Reloading!" to your team and then it will reload your gun. You can, of course, rebind it to something else at any time. It will replace the old bind you had there if any. This will mess you up if you bind it to a movement key. You will then have to go to the settings panel and change it back or type bind [key] [movement name]</tt> to fix it.

User.ini Binding
Eventually, you may find that you have more bindings than keys, especially if you make make-specific binds. In order to get around this problem, you can load binds with a text file. In your user.ini file you would have:


 * [key]=exec FILENAME.txt</tt>

Within FILENAME.txt</tt> would look like the following:
 * bind [key] [command]</tt>
 * bind [key] [command]</tt>
 * bind [key] [command]</tt>


 * User.ini Example
 * X=exec mybinds.txt</tt>
 * Y= </tt>
 * Z= </tt>

Within mybinds.txt would look like the following:


 * bind Y Say Hello world</tt>
 * bind Z Say Hi there</tt>

When you load the game, hitting Y will do nothing. But if you hit X, it will bind Y to say "Hello World". Using multiple .txt files, you can swap large numbers of binds in and out of your User.ini file.

Note: You can modify your user.ini file directly to create individual binds (without the file swapping described above). Just open it up in a text editor (such as Notepad), find the keys you want to change, modify them how you want, then save the file and open AA. In Windows the user.ini file, by default, is located at C:\Program Files\America's Army\System\user.ini

Binding Commo messages

 * [key]=commo[list] | CommoSendMessage [x]</tt>

Where <tt>[list]</tt> is <tt>radio</tt>, <tt>shout</tt>, <tt>whisper</tt>, <tt>squad</tt>, or <tt>hand</tt>, and <tt>[x]</tt> is 1–28.


 * Example: <tt>[key]=commohand | CommoSendMessage 6</tt>

Now for you own:


 * <tt>[key]=CommoHand | CommoSendMessage 1</tt>

A problem with the above is that it leaves the commo mode in CommoHand. To fix it, use:


 * <tt>[key]=CommoHand | CommoSendMessage 1 | CommoRadio</tt>

Now it leaves the Radio menu open and you have to hit a key to shut it. So to continue the fix, use:


 * <tt>[key]=CommoHand | CommoSendMessage 1 | CommoRadio | CommoSendMessage 99</tt>

This works correctly by sending a bogus commosendmessage to CommoRadio.

Hand signals

 * <tt>[key]=CommoHand</tt>


 * 1) Move out
 * 2) Stop
 * 3) Get down
 * 4) Look this way
 * 5) Ready
 * 6) Double time
 * 7) Affirm
 * 8) Negative

Squad Commands
Note: Squad commands only work if you are the squad leader.


 * <tt>[key]=CommoSquad</tt>

🇨🇴 🇨🇴 <li> There's no I in team </li> <li> That may be your way, but it's not the army way </li> <li> What are you doing solider? </li> <li> Hit the dirt! </li> <li> Stay down </li> <li> Grandma was slow but she was old </li> <li> That don't make no sense at all </li> <li> Good job soldier! </li> <li> Great job team! </li> </ol> 🇨🇴
 * 1) Squad, form up!
 * 2) Squad, spread out!
 * 3) Fall back! Fall back!
 * 4) Squad, Open fire
 * 5) Squad, Cease fire
 * 6) Squad, Hold this position
 * 7) Squad, Report in
 * 8) Squad, Silence! Silence!
 * 9) Squad, Operate as a unit

Whisper, Shout or Radio

 * <tt>[key]=CommoWhisper</tt>
 * <tt>[key]=CommoShout</tt>
 * <tt>[key]=CommoRadio</tt>

🇨🇴 🇨🇴 <li> East </li> <li> West </li> <li> Hooah </li> <li> Sniper </li> <li> Frag'em </li> <li> Smoke'em </li> <li> Flash'em </li> <li> Grenade </li> <li> Ready </li> <li> I'm hit </li> <li> Get the door </li> <li> Check your flanks </li> <li> Psst (Whisper), Frag Out (Shout), Beeps (Radio)</li> <li> Stop so I can Treat You </li> <li> Medic! [Position] </li> </ol> 🇨🇴
 * 1) Move out
 * 2) Stop
 * 3) Cover me
 * 4) Enemy spotted
 * 5) Take cover
 * 6) Enemy down
 * 7) Area secure
 * 8) Roger
 * 9) Negative
 * 10) Up
 * 11) Down
 * 12) Left
 * 13) Right
 * 14) North
 * 15) South

Actions
🇨🇴 🇨🇴 🇨🇴
 * <tt>Action</tt>: Open doors, take objectives, etc...
 * <tt>AGPMainMenu</tt>: AA main menu
 * <tt>AltFire</tt>: Alternate fire mode
 * <tt>Binoculars</tt>: Selects Binoculars (SGT/FTL only)
 * <tt>Brightness</tt>: Changes screen brightness
 * <tt>CallMedic</tt>: Player yells "Medic" if injured
 * <tt>CommoCycle</tt>: Cycles through commos
 * <tt>CommoGlobal</tt>: Global (seen by all players (all LIVE players if you are dead))
 * <tt>CommoHand</tt>: Hand signal commos
 * <tt>CommoRadio</tt>: Radio commos
 * <tt>CommoShout</tt>: Shout commos (Heard by all in range)
 * <tt>CommoSquad</tt>: Squad commos
 * <tt>CommoWhisper</tt>: Whisper commos (Heard by all in range)
 * <tt>Console</tt>: Pull up the console
 * <tt>Contrast</tt>: Changes monitor contrast
 * <tt>Crawling</tt>: Prone/Standing toggle
 * <tt>Crosshair</tt>: Change crosshair
 * <tt>Crouching</tt>: Crouch/Standing toggle
 * <tt>FastMove</tt>: Toggle run/walk
 * <tt>Fire</tt>: Fire Weapon (must be bound to key)
 * <tt>Fixjam</tt>: Fix jammed weapon
 * <tt>Flush</tt>: flushes graphics useful for lowend systems
 * <tt>FreeLook</tt>: Free look
 * <tt>Gamma</tt>: Changes monitor gamma
 * <tt>Grenadeflash</tt>: Select flash grenade
 * <tt>Grenadefrag</tt>: Select fragmentation grenade
 * <tt>Grenadesmoke</tt>: Select smoke grenade
 * <tt>Jump</tt>: Jump
 * <tt>LeanLeft</tt>: Lean/roll left
 * <tt>LeanRight</tt>: Lean/roll right
 * <tt>LeftRail</tt>: Activate mod on the left rail
 * <tt>LookDown</tt>: Moves aimpoint down
 * <tt>LookUp</tt>: Moves aimpoint up
 * <tt>MoveBackward</tt>: Move backwards
 * <tt>MoveForward</tt>: Move forwards
 * <tt>NV</tt>: Night vision goggles
 * <tt>Pause</tt>: Pauses single player game
 * <tt>PlayerList</tt>: Shows list of players
 * <tt>Quit</tt>: Exit America's Army
 * <tt>Reload</tt>: Reload weapon
 * <tt>ReportIn</tt>: Reports in your current location to team
 * <tt>Resolution</tt>: Change screen resolution
 * <tt>Reasonlist</tt>: Shows reasons for kicking a player
 * <tt>RightRail</tt>: Activate mod on the right rail
 * <tt>Say</tt>: Prompts for text message
 * <tt>SelectClass</tt>: Shows the weapons selection screen
 * <tt>SelectTeam</tt>: Shows the team selection screen
 * <tt>SetIndex 0</tt>: Changes M4 Mod set to number 1
 * <tt>SetIndex 1</tt>: Changes M4 Mod set to number 2
 * <tt>SetIndex 2</tt>: Changes M4 Mod set to number 3
 * <tt>SetIndex 3</tt>: Changes M4 Mod set to number 4
 * <tt>SetIndex 4</tt>: Changes M4 Mod set to number 5
 * <tt>SetSquadTarget</tt>: Sets squad objective
 * <tt>Shot</tt>: Takes a Screenshot (Saved as .bmp in America's Army/ScreenShots directory)
 * <tt>ShowObjectives</tt>: Shows mission objectives
 * <tt>ShowScores</tt>: Shows scores and most teammates/opponents
 * <tt>SkinTonePref</tt>: =None/Light/Medium/Dark
 * <tt>Strafe</tt>: set strafe mode on/off
 * <tt>StrafeLeft</tt>: Strafe left
 * <tt>StrafeRight</tt>: Strafe right
 * <tt>Suicide</tt>: Kill yourself
 * <tt>SupportedFire</tt>: Switch to supported fire/grenade mode (M249, M24, M82, M203, GP30 only)
 * <tt>Suppressor</tt>: Puts the suppressor on the modified M4
 * <tt>SwapHands</tt>: Shoulder/unshoulder weapon
 * <tt>Talk</tt>: Prompts for text message
 * <tt>TeamSay</tt>: Prompts for text message that only your team sees
 * <tt>TeamTalk</tt>: Prompts for text message that only your team sees
 * <tt>ThrowWeapon</tt>: Drops weapon to ground
 * <tt>TurnLeft</tt>: Turns aimpoint left
 * <tt>TurnRight</tt>: Turns aimpoint right
 * <tt>Turn180</tt>: Turns character 180 degrees around
 * <tt>UseJoyStick</tt>: Enable JoySticks
 * <tt>Votekick</tt>: Initiate/add a vote to a votekick
 * <tt>Zoom</tt>: Brings up sights/scope