flashlightActive()
Check if flashlight is active for this player.
Function Definition
ts
public readonly flashlightActive: boolean;
Returns
- boolean
Documentation
Examples
ts
const isActive = player.flashlightActive;
if (!isActive) {
// I can't see anything captain!
return;
}
// I can see everything captain!