Jump to content

Flashlight


NomNomNomNation
 Share

Recommended Posts

that is very simple.

If you use the default FPS Player script add an additional variable at the start.

 

For example:

Script.flashLightWorking = true

 

then search where the flashlight gets enabled or disabled (Key F)

 

There add a check for that variable when pressing the key.

 

 

Now if you want the flashlight to stop working just set that variable.

For example if you use the flowgraph you can add a function for that:

function Script:BreakFlashlight()--in
 self.flashLightWorking = false
 self.flashlight:Hide()
end

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...