3l0ckad3 17 Posted October 1, 2016 Can someone please help me with syntax so I can make a AI sniper or helicopter spot and engage enemy 1500+ meters.I know it is out there because I had it before and I actually built a mission with it.I spent the last couple maybe few hours googling it to no avail...Cheers!Edit: Grumpy old man was rightFor units sniper reveal [mytargetname, 4]; And all thanks goes to Benargee for heli targetingFor heli (gunner heli) reveal [targ, 4];(gunner heli) doTarget targ; (gunner heli) doFire targ; For heli engaging side, however, it does not kill all units unless anyone can add more input. { if (side _x == east) then { (gunner heli) reveal [_x, 4]; (gunner heli) doTarget _x; (gunner heli) doFire _x; } } forEach allUnits; Share this post Link to post Share on other sites
Grumpy Old Man 3540 Posted October 1, 2016 AI snipers with the sniper rifles (LRR, Lynx) already engage at 1500m+. What did you try already? For choppers you might need an additional seek and destroy waypoint in the near vicinity of the target, but usually this does the trick: sniper reveal [mytargetname, 4]; Cheers 1 Share this post Link to post Share on other sites
3l0ckad3 17 Posted October 1, 2016 AI snipers with the sniper rifles (LRR, Lynx) already engage at 1500m+. What did you try already? For choppers you might need an additional seek and destroy waypoint in the near vicinity of the target, but usually this does the trick: sniper reveal [mytargetname, 4]; Cheers I tried all sorts of syntax including reveal and do target, I'll try this on its own and get back to you, thank you :) Is their a way to get them to attack a side rather than an actual target, or a string of targets till dead ? Oh, I should say I'm trying to achieve this with a chopper and a armored vehicle too. My computer died a couple months ago taking all my syntax with it,, so I'm starting from scratch again :/ Edit: I got the sniper part working, just working on heli and tanks now, thank you! Share this post Link to post Share on other sites