Difference between revisions of "ObjectUnderReticle"

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


Anonymous user

Navigation menu