Modding:Right click events: Difference between revisions

From Vintage Story Wiki
Add the footer and header to right click events page
(Document the right click events)
 
(Add the footer and header to right click events page)
Line 1: Line 1:
{{GameVersion|1.19.8}}
__TOC__
The game source code refers to a right click as an 'interaction' (as opposed to left click which is called an 'attack'). The interaction is either routed to the currently held item in the hot bar, or to the selected block (the block in the world that the cursor is pointing at). Several methods are repeatedly called on the interaction target until the interaction is stopped. If the player is still holding right click when the interaction stops on the client, a new interaction is attempted.
The game source code refers to a right click as an 'interaction' (as opposed to left click which is called an 'attack'). The interaction is either routed to the currently held item in the hot bar, or to the selected block (the block in the world that the cursor is pointing at). Several methods are repeatedly called on the interaction target until the interaction is stopped. If the player is still holding right click when the interaction stops on the client, a new interaction is attempted.


Line 156: Line 159:
   </tr>
   </tr>
</table>
</table>
{{Navbox/modding|Vintage Story}}
Confirmedusers
272

edits