Author Topic: Add Vehicle.Alarm  (Read 3870 times)

SugarD

  • Asshat Gaming Founder
  • Tester
  • Sr. Member
  • ****
  • Posts: 820
  • Karma: +37/-75
  • STOP IN THE NAME OF THE COLESLAW!
    • View Profile
    • Clan Xperience
Add Vehicle.Alarm
« on: August 23, 2011, 01:03:38 pm »
As the title says, it would be pretty cool to have a function called Vehicle.Alarm to set/get the vehicle's alarm status, and to enable/disable it under different conditions, such as attempting to steal or ramming the vehicle hard enough, just like in Single-Player. :)

Alphazor

  • Jr. Member
  • **
  • Posts: 51
  • Karma: +8/-4
    • View Profile
Re: Add Vehicle.Alarm
« Reply #1 on: August 23, 2011, 01:08:32 pm »
Very nice  ;D , it would be usefull for a RP/RPG server

SugarD

  • Asshat Gaming Founder
  • Tester
  • Sr. Member
  • ****
  • Posts: 820
  • Karma: +37/-75
  • STOP IN THE NAME OF THE COLESLAW!
    • View Profile
    • Clan Xperience
Re: Add Vehicle.Alarm
« Reply #2 on: August 23, 2011, 02:29:48 pm »
Very nice  ;D , it would be usefull for a RP/RPG server
Sneaky! I see you knew my plans! :O

Murdock

  • Tester
  • Newbie
  • ****
  • Posts: 29
  • Karma: +1/-0
  • Dew Addict
    • View Profile
    • www.sky-city.info
Re: Add Vehicle.Alarm
« Reply #3 on: August 24, 2011, 12:06:51 am »
I would like to see this as well in the future release, I also mentioned this in my suggestions before :)

Callum

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Add Vehicle.Alarm
« Reply #4 on: September 28, 2011, 10:15:18 pm »
I would think this is already scriptable if you have a horn sound.

SugarD

  • Asshat Gaming Founder
  • Tester
  • Sr. Member
  • ****
  • Posts: 820
  • Karma: +37/-75
  • STOP IN THE NAME OF THE COLESLAW!
    • View Profile
    • Clan Xperience
Re: Add Vehicle.Alarm
« Reply #5 on: September 28, 2011, 10:30:55 pm »
It's not. We're talking about the actual car alarm, and right now the server can only control the siren and lights on Emergency Vehicles, not the horns.

Vortrex

  • Full Member
  • ***
  • Posts: 267
  • Karma: +54/-74
    • View Profile
Re: Add Vehicle.Alarm
« Reply #6 on: September 30, 2011, 09:49:51 pm »
Well, this could be possible, with the use of sounds and light flashing. Maybe every second or two, make the lights toggle on or off, based on their previous state, and make a horn sound play for anybody in range.

EDIT: I think the onVehicleUpdate() callback checks for the movement when unoccupied, and detects what player moved it ... You could use this for an alarm system in the meantime. I gotta check the LU Bible (Wiki) for this however, so don't quote me on this
« Last Edit: September 30, 2011, 09:52:05 pm by WtF »

SugarD

  • Asshat Gaming Founder
  • Tester
  • Sr. Member
  • ****
  • Posts: 820
  • Karma: +37/-75
  • STOP IN THE NAME OF THE COLESLAW!
    • View Profile
    • Clan Xperience
Re: Add Vehicle.Alarm
« Reply #7 on: September 30, 2011, 09:52:23 pm »
Ya, but that would unnecessarily waste packets syncing it to local users when the actual SP car alarm could be used instead.

Vortrex

  • Full Member
  • ***
  • Posts: 267
  • Karma: +54/-74
    • View Profile
Re: Add Vehicle.Alarm
« Reply #8 on: September 30, 2011, 09:54:50 pm »
Thats true, but its a temporary solution in case you don't want to wait for when the actual alarm gets put in

SugarD

  • Asshat Gaming Founder
  • Tester
  • Sr. Member
  • ****
  • Posts: 820
  • Karma: +37/-75
  • STOP IN THE NAME OF THE COLESLAW!
    • View Profile
    • Clan Xperience
Re: Add Vehicle.Alarm
« Reply #9 on: September 30, 2011, 10:13:48 pm »
True. It's not vital though. I can live without it in the mean time :)

 

© Liberty Unleashed Team.