Aim and Fire in FPS game

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

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">
			<MOUSEBUTTONINPUT button="RIGHT" behaviour="PRESS"/>
			<WAIT time="200"/>
			<MOUSEBUTTONINPUT button="LEFT" behaviour="PRESS"/>
			<MOUSEBUTTONINPUT button="LEFT" behaviour="RELEASE"/>
			<MOUSEBUTTONINPUT button="RIGHT" behaviour="RELEASE"/>
Post Reply