@final444h I think this will work better:
• Point <sound> to the .sound of the music tags
• Name your warthog anything and put that name in the <name> parts and compile this script:
(script dormant playlist
(sound_impulse_start <sound> <name or just "none"> 1)
)
(script continuous warthog_music
(if
(= (vehicle_test_seat_list <name> w-driver (players)) true)
(sound_impulse_stop <sound>)
(wake playlist)
(sleep_until (= (sound_impulse_time <sound>) 0))
)
In fact I don't see any harm in just:
(script continuous warthog_music
(if
(= (vehicle_test_seat_list <name> w-driver (players)) true)
(sound_impulse_stop <sound>)
(sound_impulse_start <sound> <name or just "none"> 1)
(sleep_until (= (sound_impulse_time <sound>) 0))
)
If you have just 1 single hog. For multiple hogs though you could do
[code(script continuous warthog_music
(if
(=
(or
(vehicle_test_seat_list <name> w-driver (players))
(vehicle_test_seat_list <name of second vehicle> w-driver (players))
(vehicle_test_seat_list <name of third vehicle, copypaste this for every vehicle> w-driver (players))
)
true)
(sound_impulse_stop <sound>)
(sound_impulse_start <sound> none 1)
(sleep_until (= (sound_impulse_time <sound>) 0))
)
Edited by nihao123456ftw on Sep 3, 2012 at 09:41 PM