Aim and Fire in FPS game

Post Reply
User avatar
Xcessity
Site Admin
Posts: 222
Joined: Sat May 16, 2015 2:23 pm
Location: Graz
Contact:

Aim and Fire in FPS game

Post by Xcessity »

Here is a macro that will hold down the right mouse button (RMB), wait for 200ms and then hold down the left mouse button (LMB). Usually the RMB is used to aim down sights in an FPS and the LMB fires the weapon.

Code: Select all

	<MACRO id="AimAndFire">
		<START>
			<MOUSEBUTTONINPUT button="RIGHT" behaviour="PRESS"/>
		</START>
		<MAIN>
			<WAIT time="200"/>
			<MOUSEBUTTONINPUT button="LEFT" behaviour="PRESS"/>
		</MAIN>
		<END>
			<MOUSEBUTTONINPUT button="LEFT" behaviour="RELEASE"/>
			<MOUSEBUTTONINPUT button="RIGHT" behaviour="RELEASE"/>
		</END>
	</MACRO>
Post Reply