;movemusiclogicadv.sqs
;Vehicle or object that "plays" the music
_musicplayer = _this select 0
;Distance in front of the center of the musicplayer (vehicle) to 
;generate the music
;1 or 2 m to simulate a player in the frontal control panel of a 
;truck, for example
_dist = _this select 1
#check
? damage _musicplayer > 0.9:deleteVehicle musiclog 
_pos = getPos _musicplayer
_dir = getDir _musicplayer
_poslog = [(_pos select 0)+sin(_dir)*_dist, (_pos select 1)+cos(_dir)*_dist, 1.5]

musiclog setPos _poslog
~0.1
goto "check"

