Hi, I improved my searchlight script.
In this version the searchlight operator can spot you when you run through the lightbeam and when he does, he will follow you whereever you are.
You can avoid detection when you go prone and stay still but only when you're farther then 50m away and closer then 200m from the searchlight.
When you're farther then 200m away, the operator will stop following you and continue his search routine. When you're closer then 50m, the operator will always spot you when he sees you running, walking, crawling,...in the lightbeam.
The spot stays on when the operator dies, but it wont move anymore. The spot turns out when you destroy the lens.
When you're spotted a bolean "sldetected" become true. Via this bolean you can send reinforcements, reveal the position to the enemy, sync it with a sniper... and so on.
Things to do (if I can)
- Predifined search arc
- I need a line of sight script/function, because the operator can still spot and follow you when you're hiding behind a large building, tree or any other object. I 've already started
a topic about this problem
- sqf conversion and simplified code.
If you like the idea and script, feel free to modify.
Demo mission below, no addons needed.
Edit:
second demo added, basically the same script but with.....better code (many thx to Mandoble)
..and synced with a sniper.
See LCD's update.