Your Ad Here

Subscribe
 Post #1
 5th August 2009
aog2's Avatar
December 2008
75 Posts
im making a turret so when u go in front of the ranger the turret go's off

@name Auto Turret
@inputs Ranger
@outputs Fire
@persist

If (Ranger>=1) {Fire=1}
If (Ranger<=0) {Fire=0}

please tell me if this is right
 Post #2
 5th August 2009
Dennab
February 2009
2,712 Posts
have you tried it alredy?
 Post #3
 5th August 2009
aog2's Avatar
December 2008
75 Posts
not yet but soon
 Post #4
 5th August 2009
Dennab
May 2009
565 Posts
im making a turret so when u go in front of the ranger the turret go's off

@name Auto Turret
@inputs Ranger
@outputs Fire
@persist

If (Ranger>=1) {Fire=1}
If (Ranger<=0) {Fire=0}

please tell me if this is right
That could work, however...

Code:
@name Auto Turret
@inputs Ranger
@outputs Fire 
@persist

If (Ranger>=1) {Fire} else
{!Fire}
And I'm not completely sure that will work but I think it will.
 Post #5
 5th August 2009
aog2's Avatar
December 2008
75 Posts
ok
 Post #6
 5th August 2009
Gold Member
Divran's Avatar
April 2008
4,474 Posts
I understand that you're using this as practice, but it's not needed at all. You could just wire the turret directly to the ranger. :)

Edited:

Expression 2 tutorials:
http://www.wiremod.com/forum/wiremod...guide-wip.html
http://www.wiremod.com/forum/wiremod...-tutorial.html
ApplyForce tutorial:
http://www.wiremod.com/forum/wiremod...-tutorial.html
The wiki:
http://wiki.garrysmod.com/?title=Wire_Expression2

Edited:

Why did you make a new thread? http://www.facepunch.com/showthread.php?t=786222
 Post #7
 5th August 2009
aog2's Avatar
December 2008
75 Posts
o sorry 0_0

Edited:

That could work, however...

Code:
@name Auto Turret
@inputs Ranger
@outputs Fire 
@persist

If (Ranger>=1) {Fire} else
{!Fire}
And I'm not completely sure that will work but I think it will.
no it don't work

Edited:

but replace {!Fire} With {Fire=0} and it will work
 Post #8
 5th August 2009
Gold Member
Divran's Avatar
April 2008
4,474 Posts
And Fire with Fire = 1
 Post #9
 5th August 2009
aog2's Avatar
December 2008
75 Posts
but if i do {Fire=1} it will always stay on right
 Post #10
 5th August 2009
Gold Member
Divran's Avatar
April 2008
4,474 Posts
but if i do {Fire=1} it will always stay on right
Not if you put "else {Fire = 0}" after that.
 Post #11
 5th August 2009
aog2's Avatar
December 2008
75 Posts
ya
 Post #12
 6th August 2009
aog2's Avatar
December 2008
75 Posts
now i need help making an auto door
i need a link for wire door
and normal door
Reply

All times are GMT. The time now is 06:31AM.

Facepunch Studios 2010 - Server 'MARGE'