Simple Persistent Flashlight
This is a pretty simple script that uses the SET_FLASH_LIGHT_KEEP_ON_WHILE_MOVING
native but adds a bit more functionality to the script by being able to use a command and having a config.
Config
- always_on: true/false - This allows you to decide if you want the persistent flashlight to be always on, or be controllable using the command by the players.
- command: string - This allows you to choose what the command to toggle the persistent flashlight is called.
- description: string - The suggestion text description shows up when typing up the /command.
- notifications: true/false - Whether you want a notification to show up when toggling the persistence using the command.
- notif_on: string - The notification text when you toggle on the persistent flashlight.
- notif_off: string - The notification text when you toggle off the persistent flashlight.
Command
- The default command is: /plight
Performance
The script is very minimal and as such does not have a major performance impact.
It uses around 0.1ms
of CPU and has a garbage collection thread to keep memory usage low.
Download
Click Here To Download!
Source Code
Click Here To View The Source Code!
Changelog
- v1.0.1 - Fixed Typos