America's Army/Console Scripting

From StrategyWiki, the video game walkthrough and strategy guide wiki

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

In-game binding[edit]

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, 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

This will make you radio "Move out" according to the commoradio list below due to the number 1 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

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] to fix it.

User.ini Binding[edit]

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

Within FILENAME.txt would look like the following:

bind [key] [command]
bind [key] [command]
bind [key] [command]
User.ini Example
X=exec mybinds.txt
Y=
Z=

Within mybinds.txt would look like the following:

bind Y Say Hello world
bind Z Say Hi there

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[edit]

[key]=commo[list] | CommoSendMessage [x]

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

Example
[key]=commohand | CommoSendMessage 6

Now for you own:

[key]=CommoHand | CommoSendMessage 1

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

[key]=CommoHand | CommoSendMessage 1 | CommoRadio

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

[key]=CommoHand | CommoSendMessage 1 | CommoRadio | CommoSendMessage 99

This works correctly by sending a bogus commosendmessage to CommoRadio.

Commo command list[edit]

Hand signals[edit]

[key]=CommoHand
  1. Move out
  2. Stop
  3. Get down
  4. Look this way
  5. Ready
  6. Double time
  7. Affirm
  8. Negative

Squad Commands[edit]

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

[key]=CommoSquad
  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
  1. There's no I in team
  2. That may be your way, but it's not the army way
  3. What are you doing solider?
  4. Hit the dirt!
  5. Stay down
  6. Grandma was slow but she was old
  7. That don't make no sense at all
  8. Good job soldier!
  9. Great job team!

Whisper, Shout or Radio[edit]

[key]=CommoWhisper
[key]=CommoShout
[key]=CommoRadio
  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
  1. East
  2. West
  3. Hooah
  4. Sniper
  5. Frag'em
  6. Smoke'em
  7. Flash'em
  8. Grenade
  9. Ready
  10. I'm hit
  11. Get the door
  12. Check your flanks
  13. Psst (Whisper), Frag Out (Shout), Beeps (Radio)
  14. Stop so I can Treat You
  15. Medic! [Position]

Actions[edit]

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