XurasGarry's ModTutorials (Moderator: Red_Snappa)Auto fading door
Pages: [1]   Go Down
Print
Author Topic: Auto fading door  (Read 267 times)
0 Members and 1 Guest are viewing this topic.
Red_Snappa
Moderator
Unlife
*****

Cookies: 5
Offline Offline

Steam Friends name: red_snappa
Posts: 759


Not the fish!


View Profile
« on: July 12, 2009, 02: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 Impressed.
And last the expression:
Call it what ever you like, I called it Fading_door_controler.
Code:
@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: July 12, 2009, 03:05:09 PM by red_snappa » Logged

Quote
19:14 - [XURAS] Red_Snappa: think thingsy think!
19:14 - [XURAS] thingshappen: Mehh
19:15 - [XURAS] Red_Snappa: please omg?
19:15 - [XURAS] thingshappen: I can't
sleepy
Founder
Global Administrator
Über Unlife
*****

Cookies: 35
Offline Offline

Steam Friends name: sleepy_23
Posts: 1,856



View Profile WWW
« Reply #1 on: July 12, 2009, 05: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!
Logged

Red_Snappa
Moderator
Unlife
*****

Cookies: 5
Offline Offline

Steam Friends name: red_snappa
Posts: 759


Not the fish!


View Profile
« Reply #2 on: July 12, 2009, 07:43:33 PM »

hehe that will take a week though Impressed not in the mood to change it at the moment.  hurrr
Logged

Quote
19:14 - [XURAS] Red_Snappa: think thingsy think!
19:14 - [XURAS] thingshappen: Mehh
19:15 - [XURAS] Red_Snappa: please omg?
19:15 - [XURAS] thingshappen: I can't
sleepy
Founder
Global Administrator
Über Unlife
*****

Cookies: 35
Offline Offline

Steam Friends name: sleepy_23
Posts: 1,856



View Profile WWW
« Reply #3 on: July 12, 2009, 07:54:33 PM »

No problem! that moderator status is getting nearer for you
Logged

Donkie
Not l33t anymore
Beta Tester
Über Unlife
*****

Cookies: 10
Offline Offline

Steam Friends name: dannneman
Posts: 1,398


lolfail


View Profile
« Reply #4 on: July 12, 2009, 08:13:41 PM »

Snap, you are very wrong, use the Wire constraint instead in offical SVN, it got both weld and nocollide confuzzed
Logged

sleepy
Founder
Global Administrator
Über Unlife
*****

Cookies: 35
Offline Offline

Steam Friends name: sleepy_23
Posts: 1,856



View Profile WWW
« Reply #5 on: July 12, 2009, 08:31:20 PM »

Think thats what he ment wasnt it?
Logged

Red_Snappa
Moderator
Unlife
*****

Cookies: 5
Offline Offline

Steam Friends name: red_snappa
Posts: 759


Not the fish!


View Profile
« Reply #6 on: July 12, 2009, 08:41:33 PM »

well I said UNofficial wire. never said official..
Logged

Quote
19:14 - [XURAS] Red_Snappa: think thingsy think!
19:14 - [XURAS] thingshappen: Mehh
19:15 - [XURAS] Red_Snappa: please omg?
19:15 - [XURAS] thingshappen: I can't
Pages: [1]   Go Up
Print
Jump to: