Revision Difference
Player:Flashlight#527459
<function name="Flashlight" parent="Player" type="classfunc">
<description>Enables/Disables the player's flashlight</description>⤶
<description>Enables/Disables the player's flashlight.<page>Player:CanUseFlashlight</page> must be true in order for the player's flashlight to be changed.</description>⤶
<realm>Server</realm>
<args>
<arg name="isOn" type="boolean">Turns the flashlight on/off</arg>
</args>
</function>
<example>
<description>Turns off and disables the player's flashlight</description>
<code>
Entity( 1 ):Flashlight( false )
Entity( 1 ):AllowFlashlight( false )
</code>
</example>