Call of Duty 4: Scripting Reference - Player::ButtonPressed: Difference between revisions
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( <buttonName> ) | |Name=ButtonPressed( <buttonName> ) | ||
|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). | |||
}} | }} |