Page MenuHomeFeedback Tracker

Enable weapon mounted flashlight be turned on/off using the lightOn/lightOff action
Closed, ResolvedPublic

Description

The lightOn/lightOff action allows a vehicle's headlights to be turned on and off from a script. It would be nice if this action was also able to turn on/off a flashlight or IR pointer attached to the player's weapon. E.g.

gameLogic action ["lightOn", player]; // turn on flashlight / IR pointer

In my case I need it to restore the state of the flashlight after replacing the weapon with a removeWeapon/addWeapon sequence (which currently results in the flashlight being turned off).

Details

Legacy ID
3838278156
Severity
None
Resolution
Open
Reproducibility
N/A
Category
Feature Request

Event Timeline

mrflay edited Steps To Reproduce. (Show Details)Jun 16 2013, 9:45 AM
mrflay edited Additional Information. (Show Details)
mrflay set Category to Feature Request.
mrflay set Reproducibility to N/A.
mrflay set Severity to None.
mrflay set Resolution to Open.
mrflay set Legacy ID to 3838278156.May 7 2016, 2:37 PM
Unknown Object (User) added a subscriber: Unknown Object (User).May 7 2016, 2:37 PM
Unknown Object (User) added a comment.Jun 16 2013, 10:26 AM

i dont think this is a good idea, people will spent more time searching with the mouse for the action and pressing enter than just pressing a button

mrflay added a subscriber: mrflay.May 7 2016, 2:37 PM

@Dr Death
I'm not talking about removing the keyboard binding for flashlight. What I'm suggesting is extending the already existing lightOn/lightOff action so it also can be used to turn on and off flashlight/ir pointer.

Currently, it only works for turning the headlights of vehicles on and off (there is no way to toggle the state of flashlight/ir pointer from a script).

Unknown Object (User) added a comment.Jun 16 2013, 9:17 PM

i dont think its a good idea, yes, its something new, not a removal or a change, but i think people will accidentally press on "turn IR laser on" and in a nightime MP session that's most likely a suicide.

No, it won't show up as an action in the action list. This is only a script enhancement. Sorry, if that wasn't clear.

Unknown Object (User) added a comment.Jun 17 2013, 10:11 PM

i am sorry, i still dont get it, what do you mean with script enhacement? do you want a better flashlight? or you want the binded button to "lightson/off" to work also in IR lasers?

MadDogX added a subscriber: MadDogX.May 7 2016, 2:37 PM

Mass closing ancient tickets with no activity for > 12 months; assume fixed or too trivial.

If this issue is still relevant in current dev build, please re-post.