aimShot
aimShot(
world,input):AimedShot|null
Aims a shot at the first thing the pointer’s ray meets past the character: a
target its middle sees past cover, or cover in front of one. Where it meets
neither, a free cursor aims level with its middle and a crosshair at its
range. The shot leaves its muzzle for that point, so it ends where the
pointer shows at any distance. Through the crosshair, a point less than
muzzleLeadMetres past the muzzle, or a muzzle behind cover, sends it along
the crosshair’s ray from abreast of it instead. With no muzzle, or where
cover stands between its middle and either, it leaves its middle. Finds
where the shot ends on this page’s picture, as far as its stats let the
weapon reach. Null for a character with no place. Written in place:
copy what is kept.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
world |
World |
input |
ShotAim |
Returns
Section titled “Returns”AimedShot | null