Author Topic: Headlights  (Read 966 times)

0 Members and 1 Guest are viewing this topic.

Offline Shawn

  • Übermensch
  • *****
  • Posts: 1080
  • Karma: +13/-3
  • Gender: Male
  • IGM: Shawn /Steam ID: Shawnchapp02
    • View Profile
Headlights
« 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...
Any man who knows a thing knows
He knows not a damn, damn thing at all
And every time I felt the hurt
And I felt the givin' gettin' me up off the wall


Offline Krasher

  • -=RND Help Center=-
  • WaffleBBQrz
  • ******
  • Posts: 2764
  • Karma: +75/-47
  • Gender: Male
  • PM me if you have questions.
    • View Profile
    • Forum Page
Re: Headlights
« Reply #1 on: June 27, 2010, 06:59:56 PM »
make a toggle-able light in wire

adv pod

put it on one of the keys
-Admin Application-

Follow the rules or I will you.

Offline Shawn

  • Übermensch
  • *****
  • Posts: 1080
  • Karma: +13/-3
  • Gender: Male
  • IGM: Shawn /Steam ID: Shawnchapp02
    • View Profile
Re: Headlights
« Reply #2 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
Any man who knows a thing knows
He knows not a damn, damn thing at all
And every time I felt the hurt
And I felt the givin' gettin' me up off the wall


Offline Frank

  • No.
  • WaffleBBQrz
  • ******
  • Posts: 4058
  • Karma: +94/-45
  • Gender: Male
    • View Profile
Re: Headlights
« Reply #3 on: June 27, 2010, 07:28:55 PM »
if(owner():+flashlight()==1){HL=1}
                 else{HL=0}

Offline Shawn

  • Übermensch
  • *****
  • Posts: 1080
  • Karma: +13/-3
  • Gender: Male
  • IGM: Shawn /Steam ID: Shawnchapp02
    • View Profile
Re: Headlights
« Reply #4 on: June 27, 2010, 07:43:41 PM »
if(owner():+flashlight()==1){HL=1}
                 else{HL=0}

Hmm that just gives me E2 errors :(
Any man who knows a thing knows
He knows not a damn, damn thing at all
And every time I felt the hurt
And I felt the givin' gettin' me up off the wall


Offline Krasher

  • -=RND Help Center=-
  • WaffleBBQrz
  • ******
  • Posts: 2764
  • Karma: +75/-47
  • Gender: Male
  • PM me if you have questions.
    • View Profile
    • Forum Page
Re: Headlights
« Reply #5 on: June 27, 2010, 08:00:07 PM »
Hmm that just gives me E2 errors :(

if(owner():Flashlight()==1){HL=1}
                 else{HL=0}
-Admin Application-

Follow the rules or I will you.

Offline Frank

  • No.
  • WaffleBBQrz
  • ******
  • Posts: 4058
  • Karma: +94/-45
  • Gender: Male
    • View Profile
Re: Headlights
« Reply #6 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 '()'?

Offline Shawn

  • Übermensch
  • *****
  • Posts: 1080
  • Karma: +13/-3
  • Gender: Male
  • IGM: Shawn /Steam ID: Shawnchapp02
    • View Profile
Re: Headlights
« Reply #7 on: June 27, 2010, 08:07:15 PM »
if(owner():Flashlight()==1){HL=1}
                 else{HL=0}

Same deal :(
Any man who knows a thing knows
He knows not a damn, damn thing at all
And every time I felt the hurt
And I felt the givin' gettin' me up off the wall


Offline Krasher

  • -=RND Help Center=-
  • WaffleBBQrz
  • ******
  • Posts: 2764
  • Karma: +75/-47
  • Gender: Male
  • PM me if you have questions.
    • View Profile
    • Forum Page
Re: Headlights
« Reply #8 on: June 27, 2010, 08:08:16 PM »
Same deal :(
steam chat me or sumtin

You are not setting up variables lol
-Admin Application-

Follow the rules or I will you.

Offline Shawn

  • Übermensch
  • *****
  • Posts: 1080
  • Karma: +13/-3
  • Gender: Male
  • IGM: Shawn /Steam ID: Shawnchapp02
    • View Profile
Re: Headlights
« Reply #9 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
Any man who knows a thing knows
He knows not a damn, damn thing at all
And every time I felt the hurt
And I felt the givin' gettin' me up off the wall