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
have you tried it alredy?
not yet but soon
[QUOTE=aog2;16489395]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[/QUOTE]
That could work, however...
[code]
@name Auto Turret
@inputs Ranger
@outputs Fire
@persist
If (Ranger>=1) {Fire} else
{!Fire}
[/code]
And I'm not completely sure that will work but I think it will.
ok
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. :)
[editline]01:04PM[/editline]
Expression 2 tutorials:
[url]http://www.wiremod.com/forum/wiremod-tutorials/9766-e2-guide-wip.html[/url]
[url]http://www.wiremod.com/forum/wiremod-tutorials/11041-spectres-expression-2-tutorial.html[/url]
ApplyForce tutorial:
[url]http://www.wiremod.com/forum/wiremod-tutorials/10397-applyforce-applyoffsetforce-applyangforce-tutorial.html[/url]
The wiki:
[url]http://wiki.garrysmod.com/?title=Wire_Expression2[/url]
[editline]01:06PM[/editline]
Why did you make a new thread? [url]http://www.facepunch.com/showthread.php?t=786222[/url]
o sorry 0_0
[editline]12:39PM[/editline]
[QUOTE=SBII_Andrew;16492691]That could work, however...
[code]
@name Auto Turret
@inputs Ranger
@outputs Fire
@persist
If (Ranger>=1) {Fire} else
{!Fire}
[/code]
And I'm not completely sure that will work but I think it will.[/QUOTE]
no it don't work
[editline]12:44PM[/editline]
but replace {!Fire} With {Fire=0} and it will work
And Fire with Fire = 1
but if i do {Fire=1} it will always stay on right
[QUOTE=aog2;16505183]but if i do {Fire=1} it will always stay on right[/QUOTE]
Not if you put "else {Fire = 0}" after that.
ya
now i need help making an auto door
i need a link for wire door
and normal door
Sorry, you need to Log In to post a reply to this thread.