Author Topic: A tutorial for the new peeps for the JVS Light Switch :3  (Read 2124 times)

As you found from the title this is a tutorial, for the JVS light switch, to turn a light on and off.

Step 1. Create your light/lamp, and name the part that you want lit, something like "light".
Step 2. Place a light switch.
Step 3. Wrench the light switch, and open the "Events" menu.
Step 4. From the "Events" menu, put the following into the script menu's;

onActivate > <NAMED BRICK> > setLight > (whatever light you want)
                             light
onContentStop> <NAMED BRICK> > setLight > NONE
                                    light

There you have it!

I fail to see why you felt the need to make this... and doesn't this go in the "Help" section?
« Last Edit: August 23, 2010, 01:01:49 AM by Pulchritude »

New peeps dont have JVS But still this will help

New peeps dont have JVS But still this will help
It doesn't , since it does not work.

[y][1] [OnActivate] [Brick] [Contentstart]
[y][2] [OnContentstart] [Namebrick] [Light] [Setlight] [Playerlight]
[y][3] [OnContentstarted] [Brick] [ToggleEventEnabled] [1 2 3 4 5 6]
[  ][4] [OnActivate] [Brick] [Contentstop]
[  ][5] [OnContentstop] [Namebrick] [Light] [Setlight] [NONE]
[  ][6] [OnActivate] [Brick] [ToggleEventEnabled] [1 2 3 4 5 6]

Someone test this for me, this is just the bare bones I thought up.

y means it's starting off selected.

Delete this post
« Last Edit: August 24, 2010, 02:18:15 PM by popman98 »

[v][666] [OnActivate][Self][Setlight][Player's light]
[][101] [OnActivate][Self][Setlight][None]
[v][1337] [OnActivate][Brick][ToggleEventEnabled] [666 101]

Meh
Do you even know about eventing? Because, you got the numbers wrong and your putting "666" and "1337" as delays. =/

As you found from the title this is a tutorial, for the JVS light switch, to turn a light on and off.

Step 1. Create your light/lamp, and name the part that you want lit, something like "light".
Step 2. Place a light switch.
Step 3. Wrench the light switch, and open the "Events" menu.
Step 4. From the "Events" menu, put the following into the script menu's;

onActivate > <NAMED BRICK> > setLight > (whatever light you want)
                             light
onContentStop> <NAMED BRICK> > setLight > NONE
                                    light

There you have it!
Wrong.

It should be onContentStart.




0[v][0] [OnActivate][Self][Setlight][Player's light]
1[][0] [OnActivate][Self][Setlight][None]
2[v][0] [OnActivate][Brick][ToggleEventEnabled] [0 1]

Meh

Edit: Un-idiotic
Edit2: better?!
« Last Edit: August 24, 2010, 02:17:07 PM by popman98 »

1[y]OnContentStart -> NAMEDBRICK -> setlight -> Light
2[y]OnContentStop -> NAMEDBRICK -> setlight -> None

All you do is add those lines in. Easy. No enabling/disabling needed.

1[v][0] [OnActivate][Self][Setlight][Player's light]
2[][0] [OnActivate][Self][Setlight][None]
3[v][0] [OnActivate][Brick][ToggleEventEnabled] [666 101]

Meh

Edit: Un-idiotic

Looool.