Liberty Unleashed

Liberty Unleashed => Suggestions => Topic started by: SugarD on August 23, 2011, 01:03:38 pm

Title: Add Vehicle.Alarm
Post by: SugarD 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. :)
Title: Re: Add Vehicle.Alarm
Post by: Alphazor on August 23, 2011, 01:08:32 pm
Very nice  ;D , it would be usefull for a RP/RPG server
Title: Re: Add Vehicle.Alarm
Post by: SugarD 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
Title: Re: Add Vehicle.Alarm
Post by: Murdock 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 :)
Title: Re: Add Vehicle.Alarm
Post by: Callum on September 28, 2011, 10:15:18 pm
I would think this is already scriptable if you have a horn sound.
Title: Re: Add Vehicle.Alarm
Post by: SugarD 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.
Title: Re: Add Vehicle.Alarm
Post by: Vortrex 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
Title: Re: Add Vehicle.Alarm
Post by: SugarD 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.
Title: Re: Add Vehicle.Alarm
Post by: Vortrex 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
Title: Re: Add Vehicle.Alarm
Post by: SugarD on September 30, 2011, 10:13:48 pm
True. It's not vital though. I can live without it in the mean time :)