This plugin gives players the option to have search lights target and follow players and helicopters.
There are 4 targeting modes:
- All – Targets both hostile players and helicopters
- Players – Only targets hostile players
- Heli – Only targets helicopters
- Lightshow – Targets the owner anywhere on the map
When in 'players' or 'all' mode, players will not be targeted if:
- They are the owner
- They are in the owner’s clan
- They have building privilege
- They are crouching, unless they were the last person to damage the light
- They are invisible
- They are out of line of sight
Permissions
securitylights.use– Gives players the ability to use commands
Chat Commands
Player Commands
/sl– Show command help information/sl add– Convert the search light you are looking at to a security light/sl remove– Convert the security light you are looking at back to a search light/sl mode <mode>– Set the mode of the security light you are looking at/sl globalmode <mode>– Set the mode of all security lights you own/sl info– Give the owner the ability to check the status of a search light
Admin Commands
/sl info– Check the status of any search light/sl reloadconfig– Reload the configuration file
Configuration
“Detection Radius – All” – Sets the detection radius for the “all” targeting mode
“Tracking Radius – All” – Sets the tracking radius for the “all” targeting mode
“Detection Radius – Player” – Sets the detection radius for the “players” targeting mode
“Tracking Radius – Player” – Sets the tracking radius for the “players” targeting mode
“Detection Radius – Helicopter” – Sets the detection radius for the “helicopter” targeting mode
“Tracking Radius – Helicopter” – Sets the tracking radius for the “helicopter” targeting mode
“Auto Convert Lights When Placed” – Automatically convert search lights to security lights when placed
“Require Power” – Determines if search lights will require power or not
“Night Only Operation” – Sets targeting system to night only mode
“Target Acquired Sound” – Determines if sound will play when a target is acquired
“Target Friends” – Determines if friends from the [Friends API](https://umod.org/plugins/friends-api) plugin will be targeted
“Target Team Members” – Determines if team members will be targeted
MIT License
Copyright (c) 2020 S0N0FBISCUIT
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

