five-on-it / packages/sim/src/marksman / marksmanShot
Function: marksmanShot()
marksmanShot(
sim,from,at,owner,exclude?):number
Defined in: packages/sim/src/marksman.ts:92
A marksman's round fired from from straight at the point at (the door gunner's, from a flyer): as far as MARKSMAN.range, what it meets first takes its damage (a car a tyre too, shootTyre), a shot event drawn as a rifle's tracer. owner is whose it is (0 for the police), exclude the shooter's own body. Returns what it hit, or −1.
Parameters
sim
from
x
number
y
number
z
number
at
x
number
y
number
z
number
owner
number
exclude?
RigidBody
Returns
number