GSC reference › Built-in
ActionSlotThreeButtonPressed()
Built-in (engine)
Server
Player Called on: player
Check if the player is pressing the action slot 3 button
Signature
<player> ActionSlotThreeButtonPressed()
Called on an entity: player ActionSlotThreeButtonPressed(...)
Example (from Treyarch's docs)
if ( self ActionSlotThreeButtonPressed() ) ...
Real uses in BO3's scripts
Called 6 times in the decompiled scripts. A few, zombies first:
- scripts/shared/abilities/gadgets/_gadget_roulette.gsc, line 570
return self actionslotthreebuttonpressed(); - scripts/shared/abilities/gadgets/_gadget_thief.gsc, line 918
return self actionslotthreebuttonpressed(); - scripts/shared/scene_shared.gsc, line 6775
if(self actionslotthreebuttonpressed()) - scripts/mp/gametypes/_globallogic.gsc, line 2805
if(self actionslotthreebuttonpressed()) - scripts/mp/gametypes/fr.gsc, line 1058
return self actionslotthreebuttonpressed();
Related built-ins
- ActionSlotFourButtonPressed()Check if the player is pressing the action slot 4 button
- ActionSlotOneButtonPressed()Check if the player is pressing the action slot 1 button
- ActionSlotTwoButtonPressed()Check if the player is pressing the action slot 2 button
- 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
- AdsButtonPressed()Check if the player is pressing the 'ads' button.
- MeleeButtonPressed()Check if the player is pressing the melee button
- FragButtonPressed()Check if the player is pressing the frag 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.
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).