These lights that are actually off scripts will completely turn off candelabras that are supposed to be off. It should be possible to adapt these scripts to other placeable light sources. Place the first script in the OnEnter event of an area, and put the second in its OnExit event. Two notes: 1) These scripts do not check if the objects are in the same area that is running the script, so it could effect the whole module. The easiest thing to do is give the light sources in the area a tag that is unique to that area. Or you could add code to check that the area of the object is the same as the area calling the script. 2) The second is just an optimization issue. I know that the SetLocalInt calls in the while loops of the two scripts are not necessary in a single player game. They may not b
Attributes | Values |
---|
rdfs:label
| - Lights that are actually off
|
rdfs:comment
| - These lights that are actually off scripts will completely turn off candelabras that are supposed to be off. It should be possible to adapt these scripts to other placeable light sources. Place the first script in the OnEnter event of an area, and put the second in its OnExit event. Two notes: 1) These scripts do not check if the objects are in the same area that is running the script, so it could effect the whole module. The easiest thing to do is give the light sources in the area a tag that is unique to that area. Or you could add code to check that the area of the object is the same as the area calling the script. 2) The second is just an optimization issue. I know that the SetLocalInt calls in the while loops of the two scripts are not necessary in a single player game. They may not b
- The following two scripts will completely turn off candelabras that are supposed to be off. It should be possible to adapt these scripts to other placeable light sources. Place the first script in the OnEnter event of an area, and put the second in its OnExit. Two notes: 1) These scripts do not check if the objects are in the same area that is running the script, so it could effect the whole module. The easiest thing to do is give the light sources in the area a tag that is unique to that area. Or you could add code to check that the area of the object is the same as the area calling the script. 2) The second is just an optimization issue. I know that the SetLocalInt calls in the while loops of the two scripts are not necessary in a single player game. They may not be necessary in a multi-
|
dcterms:subject
| |
dbkwik:nwn/property/wikiPageUsesTemplate
| |
abstract
| - The following two scripts will completely turn off candelabras that are supposed to be off. It should be possible to adapt these scripts to other placeable light sources. Place the first script in the OnEnter event of an area, and put the second in its OnExit. Two notes: 1) These scripts do not check if the objects are in the same area that is running the script, so it could effect the whole module. The easiest thing to do is give the light sources in the area a tag that is unique to that area. Or you could add code to check that the area of the object is the same as the area calling the script. 2) The second is just an optimization issue. I know that the SetLocalInt calls in the while loops of the two scripts are not necessary in a single player game. They may not be necessary in a multi-player game either, but test before you remove them.
- These lights that are actually off scripts will completely turn off candelabras that are supposed to be off. It should be possible to adapt these scripts to other placeable light sources. Place the first script in the OnEnter event of an area, and put the second in its OnExit event. Two notes: 1) These scripts do not check if the objects are in the same area that is running the script, so it could effect the whole module. The easiest thing to do is give the light sources in the area a tag that is unique to that area. Or you could add code to check that the area of the object is the same as the area calling the script. 2) The second is just an optimization issue. I know that the SetLocalInt calls in the while loops of the two scripts are not necessary in a single player game. They may not be necessary in a multi-player game either, but test before you remove them.
|