[FilterScript] Vehicle blink system
#1


Vehicle blink
1.1
Attach yellow blink light on side of vehicle when pressed key Q (KEY_LOOK_LEFT) or E (KEY_LOOK_RIGHT).
Now can attach emergency lights on both of sides when key 2 (KEY_LOOK_BEHIND) is pressed.
Works for all cars, trucks, trailers, bikes which have place for blinks (supports attached trailer to truck).
There is only one timer (1s) for detecting trailer attach or detach. Blinks are auto disabled, when vehicle turns in desired direction (default 55.0 degrees), but
when any key is pressed/released (OnPlayerKeyStateChange need to be called to check angle)!


Changelog:
1.1: ( Released at 08.11 )
  • Added emergency lights (default key 2)
  • Fixed a bug with trailer, while attaching makes vehicle turn blinks on
  • Some config options at top
  • External function which can destroy blinks when you want to destroy vehicle manually, or just
    do in your main script hook for calling OnVehicleDeath when destroying.
1.0: ( Released at 16.07 )
  • Released

DOWNLOAD:
(LATEST) Version 1.1:NOTE:
Using Incognito streamer plugin v2.7.4


Version 1.0:NOTE:
Using Incognito streamer plugin v2.7.2


PIC:

Reply
#2

Nice, seen this lots of before. Easy to make but still very nice!
Reply
#3

Quote:
Originally Posted by Chilli9434
Посмотреть сообщение
Nice, seen this lots of before. Easy to make but still very nice!
Actually these one is a little bit different (if you check the code). He made an array for each vehicle to save blinkers position.
Reply
#4

Wow Very Nice work Mate Keep it up,
You're Good.
Reply
#5

Interesting
Reply
#6

not ez to make like this, nice rep+1
Reply
#7

damn, this must've taken a lot of time to get all these offsets O.o

REP+, good work
Reply
#8

Well,The coordinates,most of them i had before for another use ,good job,simple and nice.
and yea,here is a bug:
I didnt try it in game but i am sure this is a bug,When a car gets respawned or destroyed,the objects will stay at the last position of the vehicle.
Reply
#9

Yeah !! Good job man, it's really nice
Reply
#10

Nice job.You could've used encode lights function,but this one seems fine.Repped!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)