GSC reference › Built-in
AdsButtonPressed()
Built-in (engine)
Server
Player Called on: player
Check if the player is pressing the 'ads' button.
Signature
<player> AdsButtonPressed()
Called on an entity: player AdsButtonPressed(...)
Example (from Treyarch's docs)
while( self AdsButtonPressed() )...
Real uses in BO3's scripts
Called 19 times in the decompiled scripts. A few, zombies first:
- scripts/zm/_zm.gsc, line 5216
else if(self adsbuttonpressed()) - scripts/zm/_zm_turned.gsc, line 362
if(self attackbuttonpressed() || self adsbuttonpressed() || self meleebuttonpressed()) - scripts/zm/_zm_weap_dragon_gauntlet.gsc, line 438
while(self adsbuttonpressed()) - scripts/zm/_zm_weap_keeper_skull.gsc, line 492
while(self adsbuttonpressed()) - scripts/zm/zm_island_side_ee_golden_bucket.gsc, line 148
while(self adsbuttonpressed())
Related built-ins
- ButtonPressed()Check if the host is pressing the button/key, "BUTTON_A", "BUTTON_B", "K", etc...
- UseButtonPressed()Check if the player is pressing the use button
- AttackButtonPressed()Check if the player is pressing the fire button
- MeleeButtonPressed()Check if the player is pressing the melee button
- FragButtonPressed()Check if the player is pressing the frag button
- ActionSlotFourButtonPressed()Check if the player is pressing the action slot 4 button
- JumpButtonPressed()Check if the player is pressing the 'jump' button.
- SecondaryOffhandButtonPressed()Check if the player is pressing the secondary offhand button
- StanceButtonPressed()Check if the player is pressing the 'stance' button.
- ActionSlotOneButtonPressed()Check if the player is pressing the action slot 1 button
- ActionSlotThreeButtonPressed()Check if the player is pressing the action slot 3 button
- ActionSlotTwoButtonPressed()Check if the player is pressing the action slot 2 button
New to GSC?
Start with the basics, or paste a compile error to get the fix.
Built-in descriptions, parameters and examples come from Treyarch's BO3 mod tools docs. Usage links point at shiversoftdev/t7-source (decompiled BO3 scripts).