Archaegeo / DualUniverseLuaIssues

DualUniverse LUA Issue Tracking
GNU General Public License v3.0
5 stars 0 forks source link

Character Lights #39

Open EasternGamer opened 3 years ago

EasternGamer commented 3 years ago

I was thinking about the camera API over the weekend, and sort of thought of a small thing to add along with it: the ability to get the state of your character lights and maybe turn them on and off. Something like this:

system.getPlayerLightState(pid) -> returns true or false system.setPlayerLightState(cid, true/false) -> enables or disables it respectively. Could

It's a small thing with little actual use, aside from perhaps controlling user lights since some ships look bad when you use your lights, ship builders could add a detection zone to specifically disable and enable them depending on where you go automatically, or simply find out who is using a light.

Archaegeo commented 2 years ago

I doubt letting others control your lights will be a thing :) But ill leave this for now.

NQ-Ligo commented 2 years ago

Hi there!

Could be something to add. However, will require an explicit execution and master player only, to prevent abuse or annoying things. Just don't like the name I will have to put on that, a bit too long 😓
unit.getMasterPlayerLightState() unit.setPlayerLightState( state)

As always no promise but will consider to add that.

samdeane commented 2 years ago

Would be the sort of thing that you might want to use with #44...

EasternGamer commented 2 years ago

@Archaegeo this is added iirc.