Jump to content

Lockeable Lights [Script help needed]


LivewareCascade

Recommended Posts

Good evening ಠ_ಠ.

 

I have an idea regarding the following mod:

 

http://www.newvegasn...le.php?id=42522

 

This mod is called placeable lights and places a small selection of toggleable lights into the game, including lamps, tubelights, lanterns and floodlights.

 

However, I have noticed that when turned on, the lamps themselves are still fully havokable objects, and so, with my character floundering about the place like a blind bull driving a tractor, my lights tend not to stay in the same place for very long at all.

 

So I thought of an idea: Why not introduce a small addition to the on/off script controlling the light source that will lock the location of the lights in place, similar to Feng Shui? (Which for some reason, doesn't seem to work with this mod, maybe because the lights are activators).

 

Let's say we drop the light from the inventory. Currently, pressing "use" to pick up the light triggers a menu to either turn the light on, pick it up, or do nothing. Upon turning the light on, why not lock the light in place, and then upon deactivation, allow it to be havokable again?

 

I tried looking at the Feng Shui lock script, but I'm a bit new to programming, so I didn't get very far, especially with the syntax. Certain things like variable declaration, etc. are clear, but the scipt to halt movement isn't.

 

Can anyone make any recommendations regarding this issue? The author has given express permission to use the mod as long as the original author(s) are credited, so hopefully nobody will have any issues regarding editing the work of another.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...