logo

scripts

Unnamed repository; edit this file 'description' to name the repository.
commit: d4793ee434745583a53fa45a7c8ec70b7f4dbd24
parent: eb42944156f18ae58caebd1e589c469d63561f18
Author: lanodan <lanodan.delta@free.fr>
Date:   Thu, 15 May 2014 07:43:24 +0200

Add hovercraft

Diffstat:

gmod/hovercraft.e2 | 13+++++++++++++
1 file changed, 13 insertions(+), 0 deletions(-)

diff --git a/gmod/hovercraft.e2 b/gmod/hovercraft.e2 @@ -0,0 +1,13 @@ +@name Hovercraft +@inputs Dist +@outputs Move +@persist +@trigger + +if(Dist <= 50) { //50 is a bout the eyes height + Move = 1 +} elseif(Dist >= 60) { //Put a little margin to prevent glitches + Move = -1 +} else { + Move = 0 +}