Author Topic: How to use JVS  (Read 2368 times)

ive just started using jvs doors and i thought id try the buttons and i cant qiute figure it out. if anyone could help it would be greatly apprecieated.           =]

 

What exactly do you mean when you say you can't figure out how to use them?

You can't get them to show up in-game?

You'd like to know how the events work?

There are quite a few things you could be asking.

Shouldn't this be in help?

it should be, but he missed.


Like when you flick the switch on, it says You moved the switch to the on position?

If you want to make a light turn on when it says that, then where it says content start namedbrick setlight playerlight.  If that's what you mean.

yer i'd like to know about th events to make stuff happen like remotley opening doors or pushing a button to make some bricks fall over and basic stuff like that.

What do you mean by remotely opening doors? You mean with a button?

How to make bricks fall over by pressing a button:

Make the bricks you want to fall over. Name them all "bricks".

Make a button and add this event to it:

Code: [Select]
OnContentStarted | NAMED BRICK | fakekillbrick [5][0][0][10]
                     bricks

Pressing the button will cause the bricks to fall over.

Input Events:
onContentStart - When the brick first activates. You might use this to play sounds, start certain actions, open other doors or de-collide the brick to allow people to walk through the door.
onContentStarted - When the brick is fully activated e.g. button pressed in, lever in "on" position, door fully opened. You might use this to trigger closing the door or the events that happen when a button is pressed. ("You activated the countdown!")
onContentStop - When the brick starts to deactivate e.g. door closing again, lever moving to "off" position.
onContentStopped - When the brick is fully deactivated. You might use this to do things when a lever is turned "off", play closing sounds or re-collide the brick so the door is shut.
onContentRestricted - When a player attempts to use the brick but is restricted by the events. (See below) You might use this to play sounds, show error messages or activate traps.
onContentStuckPlayer - When the brick has stopped activating, many of the Door ones will trigger this event if a player is inside the area where it has reappeared in. You might use this to re-open the door, teleport players away or kill them for larger doors.
onContentStuckVehicle - As above, but for when a vehicle is stuck inside the door. You might use this to respawn vehicles. There's not much you can do with this yet since there's no events that can apply to vehicles.
onContentBlocked - This is triggered when bricks or vehicles are in the way of doors opening. You should use this as an indicator to clear out the general area if your own build is in the way.
onContentCreated - This happens when the content bricks are initially loaded or placed. You might use this to set up more complicated door events, such as a button being "deactivated" and not functioning until you need it to.

Output Events
contentStart - Activates the brick. You can set a direction for some to open in. (doors opening clockwise or anticlockwise, for instance a set of double-doors opening together) You can also make these bricks restricted so only certain players can use them, triggering the onContentRestricted events instead.
contentStop - Stops the brick if it's open. It'll close in the same direction it was opened in and can be restricted in a similar way.
contentHide - Hides the model shape until started again. You can use this for "hidden doors" inside walls etc.

Input Events:
onContentStart - When the brick first activates. You might use this to play sounds, start certain actions, open other doors or de-collide the brick to allow people to walk through the door.
onContentStarted - When the brick is fully activated e.g. button pressed in, lever in "on" position, door fully opened. You might use this to trigger closing the door or the events that happen when a button is pressed. ("You activated the countdown!")
onContentStop - When the brick starts to deactivate e.g. door closing again, lever moving to "off" position.
onContentStopped - When the brick is fully deactivated. You might use this to do things when a lever is turned "off", play closing sounds or re-collide the brick so the door is shut.
onContentRestricted - When a player attempts to use the brick but is restricted by the events. (See below) You might use this to play sounds, show error messages or activate traps.
onContentStuckPlayer - When the brick has stopped activating, many of the Door ones will trigger this event if a player is inside the area where it has reappeared in. You might use this to re-open the door, teleport players away or kill them for larger doors.
onContentStuckVehicle - As above, but for when a vehicle is stuck inside the door. You might use this to respawn vehicles. There's not much you can do with this yet since there's no events that can apply to vehicles.
onContentBlocked - This is triggered when bricks or vehicles are in the way of doors opening. You should use this as an indicator to clear out the general area if your own build is in the way.
onContentCreated - This happens when the content bricks are initially loaded or placed. You might use this to set up more complicated door events, such as a button being "deactivated" and not functioning until you need it to.

Output Events
contentStart - Activates the brick. You can set a direction for some to open in. (doors opening clockwise or anticlockwise, for instance a set of double-doors opening together) You can also make these bricks restricted so only certain players can use them, triggering the onContentRestricted events instead.
contentStop - Stops the brick if it's open. It'll close in the same direction it was opened in and can be restricted in a similar way.
contentHide - Hides the model shape until started again. You can use this for "hidden doors" inside walls etc.

Damn, you're thorough. :cookieMonster:


Damn, you're thorough. :cookieMonster:
oh yes he is, and for the vault door, when i activate it and somebody walks in to get stuck, (i made the event kill peeps on contentstuckplayer) i die >=[

oh yes he is, and for the vault door, when i activate it and somebody walks in to get stuck, (i made the event kill peeps on contentstuckplayer) i die >=[

Update content mod.

thanks u guys just about covered everything!!