Arma 3

Arma 3

檢視統計資料:
Hellbourne 2018 年 5 月 4 日 下午 3:31
Playing music from a helicopter for all players to hear?
As the title says i am looking for a way to get Ai Helicopters to play music using the playSound3D function but selecting tracks at random i want to be able to hear it while in a defined heli and hear it from a heli as they fly over/away please be detailed in your tutorial i am very new to scripting... PS i have used the say3d function but it does not achieve what i want i want all players to hear it and i want more than one track to be played... thanks in advance guys!
< >
目前顯示第 1-6 則留言,共 6
B✪✪tsy 2018 年 5 月 4 日 下午 6:33 
Music will be muted (more or less) in the helicopter (1st person view). Only in 3rd person view you can get music hearable while stting inside a vehicle. So I would not bother with it.
Hellbourne 2018 年 5 月 4 日 下午 7:05 
Wrong i have acheived this with say3d i want to achieve it with playsound3d
IM SORRY BUFFALO 2018 年 5 月 4 日 下午 7:18 
idk if playSound3d is global or local so ill show both examples.

this creates a function with an array with the paths to multiple music files(change the paths to whatever music files you have including their names, below is just an example. then it selects a random track from the array and uses it inside playSound3d on the location of the heli(change heliName to your heli's name). then it calls the function so it starts, you would run this on the server(again, idk if the playSound3D command is local or global, if its local then you need to use the second script below this one(remoteExec)).
heliMusicFnc = { _selectTrack = random ["A3\Sounds_F\sfx\blip1.wav", "A3\Sounds_F\sfx\blip2.wav", "A3\Sounds_F\sfx\blip3.wav"]; playSound3D [_selectTrack, heliName]; }; call heliMusicFnc;

this does the exact same thing as above but it globally executes on everybodys clients and join in progress players by using remoteExec.
heliMusicFnc = { _selectTrack = random ["A3\Sounds_F\sfx\blip1.wav", "A3\Sounds_F\sfx\blip2.wav", "A3\Sounds_F\sfx\blip3.wav"]; playSound3D [_selectTrack, heliName]; }; remoteExec ["heliMusicFnc", 0, true];
Kiri Otoru 2018 年 5 月 5 日 上午 3:32 
check the helicopter pilot action menu in Unsung.
Problem is, you cannot stop themusic if you started it.
MrMessy187 2018 年 5 月 8 日 下午 4:49 
hey,

problem i found is that when ever a sound is played using any of the sound functions, they do not
follow the entity that created them, meaning if you start a sound from a heli position or a entity within the heli when the heli moves the sound does not move with it.. it stays at the position it was triggered.. :/
Hellbourne 2018 年 5 月 9 日 上午 12:04 
What about playing inside the Heli for all players to hear?
< >
目前顯示第 1-6 則留言,共 6
每頁顯示: 1530 50

張貼日期: 2018 年 5 月 4 日 下午 3:31
回覆: 6