EVENT PRESSEDFIRE: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
Line 1: Line 1:
{{EventTable|1=EVENT_PRESSEDFIRE|2=player that executed the input|3=[[i|player->i]]|4=1 value}}
EVENT_PRESSEDFIRE is a [[EDuke32_event_list|Game Event]].
EVENT_PRESSEDFIRE is a [[EDuke32_event_list|Game Event]].


This [[event]] turns on when you press the shoot key (''ctrl'' and ''mouse button 1'' by default) and proceeds until this key is holding.
This [[event]] is triggered when you press the primary fire key (''ctrl'' and ''mouse button 1'' by default).


Setting [[RETURN]] to any non-zero value will effectively negate the keypress, preventing the game from reacting in any way.
Setting [[RETURN]] to any non-zero value will effectively negate the keypress, preventing the player from firing.


[[Category:Events]]
[[Category:Events]]

Latest revision as of 15:07, 4 February 2022

Event ID player# THISACTOR RETURN
EVENT_PRESSEDFIRE player that executed the input player->i 1 value

EVENT_PRESSEDFIRE is a Game Event.

This event is triggered when you press the primary fire key (ctrl and mouse button 1 by default).

Setting RETURN to any non-zero value will effectively negate the keypress, preventing the player from firing.