.:`=-~rANdOm~`-=:.

Game Servers => Wire Build Server => Topic started by: Shawn on June 27, 2010, 06:55:01 PM

Title: Headlights
Post by: Shawn on June 27, 2010, 06:55:01 PM
Anyone know how I'm able to wire lights for my car i want it to be triggered with f botton, But all I'm able to get is for it to flash when i press the botton... So does anyone i know how i'm able to get it to stay lite up until i press the botton agian...
Title: Re: Headlights
Post by: Krasher on June 27, 2010, 06:59:56 PM
make a toggle-able light in wire

adv pod

put it on one of the keys
Title: Re: Headlights
Post by: Shawn on June 27, 2010, 07:02:27 PM
make a toggle-able light in wire

adv pod

put it on one of the keys

I did that but it just turnes on for like second then goes out... even if i hold the key it still does that... Only happens when i try hooking it to an APC...

Or made i messed up on making the toggleable light Lol but it did work fine when i just had it set to a botton
Title: Re: Headlights
Post by: Frank on June 27, 2010, 07:28:55 PM
if(owner():+flashlight()==1){HL=1}
                 else{HL=0}
Title: Re: Headlights
Post by: Shawn on June 27, 2010, 07:43:41 PM
if(owner():+flashlight()==1){HL=1}
                 else{HL=0}

Hmm that just gives me E2 errors :(
Title: Re: Headlights
Post by: Krasher on June 27, 2010, 08:00:07 PM
Hmm that just gives me E2 errors :(

if(owner():Flashlight()==1){HL=1}
                 else{HL=0}
Title: Re: Headlights
Post by: Frank on June 27, 2010, 08:05:25 PM
if(owner():Flashlight()==1){HL=1}
                 else{HL=0}

Shouldn't Flashlight:
a)be 'flashlight()'
or
b)be Flashlight:, without the '()'?
Title: Re: Headlights
Post by: Shawn on June 27, 2010, 08:07:15 PM
if(owner():Flashlight()==1){HL=1}
                 else{HL=0}

Same deal :(
Title: Re: Headlights
Post by: Krasher on June 27, 2010, 08:08:16 PM
Same deal :(
steam chat me or sumtin

You are not setting up variables lol
Title: Re: Headlights
Post by: Shawn on June 27, 2010, 08:20:10 PM
steam chat me or sumtin

You are not setting up variables lol

Thats becuase I'm not use to that style of coding i use something else...
But i manged to get lighs working for when i have the brakes on and for when I'm backing up... Does anyone know the max wire light limit is? because I'm already using 4 Lol And i'm not in a server right now I'm building in single player mode