Please login or register.

Xuras

Author Topic: Auto fading door  (Read 756 times)

Offline Red_Snappa

  • Global Moderator
  • Posts far too much
  • *****
  • Posts: 969
  • Cookies: 7
  • Not the fish!
    • View Profile
Auto fading door
« on: 12 July, 2009, 14:23:51 pm »
Well couse I didn't had fading door, and it sucks at dupping as donkie said, I made my own fading door like.

Here is what you need:
A door plate, I used an 2*2 PHX plate
A controle plate, like an 1*1 PHX plate
A button
Unofficial wire extra's
Expression 2 (find the expression at the end of this tut)
And last a targetfinder

Make it like this and make sure the targetfinder is nocolided with everything(get the nocolide tool and rightclick it)


These are the options of the targetfinder:


The button has to be toggled, and on/off values are 1/0.

The white thing is a WIRED nocolide, you can only find the WIRED nocolide in the unofficial wire extra's (wich can be found on the wire site, tis an svn.) Ones you found the WIRED nocolide tool left click ones on the 2*2 plate and right click on the controle plate(1*1) to spawn the WIRED nocolide controler.


Wireing:
nocolide controler - activate -> expression 2 chip
Expression 2 chip - On -> Button
Expression 2 chip - Targetfiner -> targetfinder - 1_ent

Yes that really is everything ^^.
And last the expression:
Call it what ever you like, I called it Fading_door_controler.
Code: [Select]
@name Fading door controler
@inputs On
@inputs Targetfiner:entity
@outputs Nocolide
@persist
@trigger all


if(On)
{
    if(entity(Targetfiner:id())==owner())
    {
        Nocolide = 1
    }
    else
    {
        Nocolide = 0
    }
}
else
{
    Nocolide = 0
}

Also I'm gonna make an upgraded version of the chip later, in that version you can add other names aswell.
« Last Edit: 12 July, 2009, 15:05:09 pm by red_snappa »
Quote
22:54 - Red_Snappa: i don't have dropbox D:
22:54 - [XURAS] thingshappen: oeghnoaegbaouga

Offline sleepy

  • Founder
  • Global Administrator
  • Lives here
  • *****
  • Posts: 2,055
  • Cookies: 39
    • View Profile
    • Xuras!
Re: Auto fading door
« Reply #1 on: 12 July, 2009, 17:57:31 pm »
Could use materialiser aswell but that used to kill servers but you could give it a test. But very nice door so far cant wait till the upgraded version!
Any problems contact me
sleepy@alflatters.co.uk




Offline Red_Snappa

  • Global Moderator
  • Posts far too much
  • *****
  • Posts: 969
  • Cookies: 7
  • Not the fish!
    • View Profile
Re: Auto fading door
« Reply #2 on: 12 July, 2009, 19:43:33 pm »
hehe that will take a week though ^^ not in the mood to change it at the moment.  :hurrrr:
Quote
22:54 - Red_Snappa: i don't have dropbox D:
22:54 - [XURAS] thingshappen: oeghnoaegbaouga

Offline sleepy

  • Founder
  • Global Administrator
  • Lives here
  • *****
  • Posts: 2,055
  • Cookies: 39
    • View Profile
    • Xuras!
Re: Auto fading door
« Reply #3 on: 12 July, 2009, 19:54:33 pm »
No problem! that moderator status is getting nearer for you
Any problems contact me
sleepy@alflatters.co.uk




Offline Donkie

  • Not l33t anymore
  • Almost lives here
  • ***
  • Posts: 1,710
  • Cookies: 10
  • Victory is near! Make the last push!
    • View Profile
Re: Auto fading door
« Reply #4 on: 12 July, 2009, 20:13:41 pm »
Snap, you are very wrong, use the Wire constraint instead in offical SVN, it got both weld and nocollide :3

I got alot to brag about ^
Code: [Select]
22:25 - Donkie: go it
22:25 - Donkie: got tit
22:25 - Donkie: aergaergaer
22:25 - Donkie: got it*

Offline sleepy

  • Founder
  • Global Administrator
  • Lives here
  • *****
  • Posts: 2,055
  • Cookies: 39
    • View Profile
    • Xuras!
Re: Auto fading door
« Reply #5 on: 12 July, 2009, 20:31:20 pm »
Think thats what he ment wasnt it?
Any problems contact me
sleepy@alflatters.co.uk




Offline Red_Snappa

  • Global Moderator
  • Posts far too much
  • *****
  • Posts: 969
  • Cookies: 7
  • Not the fish!
    • View Profile
Re: Auto fading door
« Reply #6 on: 12 July, 2009, 20:41:33 pm »
well I said UNofficial wire. never said official..
Quote
22:54 - Red_Snappa: i don't have dropbox D:
22:54 - [XURAS] thingshappen: oeghnoaegbaouga

 


SimplePortal 2.3.2 © 2008-2010, SimplePortal