Difference between revisions of "ObjectUnderReticle"
Jump to navigation
Jump to search
no edit summary
imported>ZuTheSkunk |
imported>Tgspy |
||
Line 22: | Line 22: | ||
ref tgt | ref tgt | ||
let | let tgt := ObjectUnderReticle 0 2048 ;Check for object within 30 m/96 ft | ||
if ( | if ( tgt && IsFormValid target && ( GetType tgt == 42 || GetType tgt == 43 ) ) | ||
;We have an actor under the crosshairs! | ;We have an actor under the crosshairs! | ||
tgt.Kill PlayerRef ;player kills target using cosmic mind rays | |||
endif | endif | ||