Call of Duty 4: Scripting Reference - Player::ButtonPressed: Difference between revisions

From COD Modding & Mapping Wiki
Jump to navigation Jump to search
(New page: {{Function |Version=4 |Name=ButtonPressed( <buttonName> ) |Module=Player |Available=MP Only |Summary=Check if the host is pressing the button/key, "BUTTON_A", "BUTTON_B", "K |Call_on...)
 
mNo edit summary
Line 3: Line 3:
|Name=ButtonPressed( &lt;buttonName&gt; )
|Name=ButtonPressed( &lt;buttonName&gt; )
|Module=Player
|Module=Player
|Available=MP Only
|Available=MP Only (Consoles)
|Summary=Check if the host is pressing the button/key, "BUTTON_A", "BUTTON_B", "K
|Summary=Check if the host is pressing the button/key, "BUTTON_A", "BUTTON_B", "K
|Call_on=The player (it will only check the host player's buttons though)
|Call_on=The player (it will only check the host player's buttons though)
|Example=<pre>while( self ButtonPressed( "BUTTON_A" ) ) ...</pre>
|Example=<pre>while( self ButtonPressed( "BUTTON_A" ) ) ...</pre>
|Notes=The function is known in PC build but works for console buttons only / might be truncated (function declared without code body).
}}
}}

Revision as of 02:20, 3 August 2009