[highlight=e2]@name Auto Door
@inputs Target Button
@outputs Door
if (Target & Button) {
Door=0
} else {
Door=99
}
[/highlight]
Ok i have locked a littel into wiremod and i am pretty good at it but i am trying to code some expressions in E2 but i can make the auto door but i wanna make it so that the target finder needs to have a target and the button needs to be 1 before it opens i did start whit this
@name Auto Door
@inputs Target
@outputs Door
@persist
if (Target>=1) {Door=0} else {Door=100}
and now i want to add the button
@name Auto Door
@inputs Target Button
@outputs door
@persist
if (~Target + Button == 2) {Door=0} else {Door=100}
pls respond as fast as your guys can
Last edited by MiniRazor; 12-05-2009 at 11:26 AM.
[highlight=e2]@name Auto Door
@inputs Target Button
@outputs Door
if (Target & Button) {
Door=0
} else {
Door=99
}
[/highlight]
“Saying Java is good because it works on all operating systems is like saying anal sex is good because it works on all genders.”
Bookmarks