Author Topic: New JVS door eventing method  (Read 1518 times)

So i was on my server thinking, "How can I get the JVS doors to be more realistic than they are?" I than began to replacing and adding a few events in the doors inorder to make it so you can click the door when its open in order to close it instead of it automaticly closing on you. This is my end product http://www.youtube.com/watch?v=Nln9kDyAFVs PM me if you want me to show you how to make it or say yes in your reply. If i get more then 10 replys for different people then ill make a tutorial.

I need tutorial, please.


I guess that's ok, but it's not like nobody can do this.

Ryuu syas: This can be done with the sile 'toggleeventenabled' event that comes with the game. Tus, making this easy.

It can be made with toggle event but I dont think you understand the way i did this. You actualy have to click the actual opened door when its open. not the brick the door came from. Last, I made this to show people that theres other ways you can make a JVS door then the defualt way.

this is easy.....lol....

I know its easy but like i said, I made this to show what is possible  than the regular method of the JVS doors.


Anyone who doesn't exactly know how to do this, doesn't really care. Including me.

it's easy, too bothered to look at youtube, just use a plate under the door
  • onplayertouch>namedbrick(door)>dooropen
  • [1000]onplayertouch>namedbrick(door)>doorclose
  • onplayertouch>self>cancleevents

Er actually what i do is make a on click open, Then give the opened door colision then you can click it again to close

Er actually what i do is make a on click open, Then give the opened door colision then you can click it again to close
Colision would make it so that you can't walk through the opened door.
What you want is ray casting.

Here is an example:
Code: [Select]
Normal code here, except, remove the 'OnDoorOpened > DoorClose' event.
[√] 11 [0] OnActivate > Self > ToggleEventsEnabled > 0 12 13
[√] 12 [0] OnDoorOpened > Self > SetRayCasting > [√]
[ ] 13 [0] OnActivate > Self > DoorClose > (Whatever kind you want here)
That works for me.

That reminds me, I forgot to add colision to the open door. Ill add it later when i get a chance. and make tutorial or somthing.