Difference between revisions of "ObjectUnderReticle"
m
converted from set to let since the example was NVSE only, but forgot to convert the "to" as well... heh
imported>JT (Created page with "{{Function |CSWikiPage = ObjectUnderReticle |origin = VEGAS1 |summary = Yields an object an arbitrary distance away from the crosshairs. |name = ObjectUnderReticle |argum...") |
imported>JT m (converted from set to let since the example was NVSE only, but forgot to convert the "to" as well... heh) |
||
Line 22: | Line 22: | ||
ref tgt | ref tgt | ||
let target | let target := ObjectUnderReticle 0 2048 ;Check for object within 30 m/96 ft | ||
if ( GetType target == 42 || GetType target == 43 ) | if ( GetType target == 42 || GetType target == 43 ) | ||
;We have an actor under the crosshairs! | ;We have an actor under the crosshairs! |