Quantcast

Jump to content

» «
Photo

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

8 replies to this topic
In45do
  • In45do

    Newbz

  • Members
  • Joined: 15 Jan 2012
  • Indonesia

#1

Posted 29 March 2014 - 06:48 AM

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. :/


ZAZ
  • ZAZ

    Kernlochbohrer

  • Feroci
  • Joined: 10 Jan 2005
  • European-Union

#2

Posted 29 March 2014 - 08:33 AM

use 06C1 and 06B4, 06B4 requires target coords, can you get and give with 0407

In45do
  • In45do

    Newbz

  • Members
  • Joined: 15 Jan 2012
  • Indonesia

#3

Posted 30 March 2014 - 08:28 AM

OK, but do I have to use target coord for opcode 06C1 as well?


ZAZ
  • ZAZ

    Kernlochbohrer

  • Feroci
  • Joined: 10 Jan 2005
  • European-Union

#4

Posted 30 March 2014 - 11:41 AM

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


In45do
  • In45do

    Newbz

  • Members
  • Joined: 15 Jan 2012
  • Indonesia

#5

Posted 31 March 2014 - 04:23 AM

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.


ZAZ
  • ZAZ

    Kernlochbohrer

  • Feroci
  • Joined: 10 Jan 2005
  • European-Union

#6

Posted 31 March 2014 - 04:56 PM

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 car
0407: 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.0
06B4: set_searchlight 20@ path_between 11@ 12@ 13@ and 11@ 12@ 13@ speed 2.5




:Loop
0407: 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


  • In45do likes this

In45do
  • In45do

    Newbz

  • Members
  • Joined: 15 Jan 2012
  • Indonesia

#7

Posted 01 April 2014 - 08:30 AM

Thanks master! :D
I finally did it and I'm using 2 searchlight. :^:

10010488_643932975653965_2048084328_o.jp


Convetors
  • Convetors

    Suddently its Me !

  • Members
  • Joined: 04 Aug 2010

#8

Posted 18 April 2014 - 12:19 PM

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 :)


In45do
  • In45do

    Newbz

  • Members
  • Joined: 15 Jan 2012
  • Indonesia

#9

Posted 19 April 2014 - 11:29 AM

Convetors Going to try it soon. And btw, you're the creator of SA to V Player Mod right? How is the progress? :)





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users