Jump to content

[SA] How to attach 'searchlight' on car?


In45do

Recommended Posts

As the title said, how to do it? I want the searchlight to be attached like police maverick. I'm using opcode 06B1 and 06C1 but it doesn't work. :/

Link to comment
Share on other sites

not really, you can insert there any coords, it's just for the start, then 06B4 gives the target, should run then in a loop because vehicle moves and it needs permanently actually target coords

Link to comment
Share on other sites

Thanks, it's now attached! :)
But, the direction of searchlight isn't fit. I mean, the searchlight doesn't follow vehicle direction. And whenever I edit the vehicle coord with 0407 it still give the same effect.

Link to comment
Share on other sites

as i said "it's just for the start" i didn't consider that it needs to wait some seconds (5 or 10 sec) till the search light works full
so it makes sense to insert vars of 0407, same as in the Loop

03C0: 0@ = actor $PLAYER_ACTOR car0407: store_coords_to 11@ 12@ 13@ from_car 0@ with_offset 0.0 5.0 -0.5 06C1: create_searchlight 20@ on_car 0@ with_offset 0.0 0.0 2.5 radius 0.2 target 11@ 12@ 13@ radius 12.006B4: set_searchlight 20@ path_between 11@ 12@ 13@ and 11@ 12@ 13@ speed 2.5:Loop0407: store_coords_to 11@ 12@ 13@ from_car 0@ with_offset 0.0 5.0 -0.5 06B4: set_searchlight 20@ path_between 11@ 12@ 13@ and 11@ 12@ 13@ speed 15.5
Link to comment
Share on other sites

  • 3 weeks later...

Thanks master! :D

I finally did it and I'm using 2 searchlight. :^:

 

10010488_643932975653965_2048084328_o.jp

Have you tried to attach Those to Cars and make them bigger , they will Give better headlights effects , Try and tell me the result if you can , PLease :)

Link to comment
Share on other sites

  • 8 years later...
On 19.04.2014 at 17:29, In45do said:

@КонвекторыСобираюсь попробовать в ближайшее время. И кстати, вы создатель SA to V Player Mod, верно? Как прогресс?

Hello! I am very interested in your script, do you still have access to it?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.