Product Chat / Main Menu Music (standalone) and sound for flashlight

Author
Message
Duchenkuke
GameGuru VBOTB Developer
8
Years of Service
User Offline
Joined: 7th Jun 2016
Location: Germany
Posted: 13th Jun 2016 20:00
Hey Guys,
is there a way to add music to the main menu in a standalone?
And is it possible to give the flashlight a sound?
Maybe a script wich plays a sound from the soundback when f is pressed? Is that possible?
Belidos
3D Media Maker
9
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 14th Jun 2016 08:03
Quote: "is there a way to add music to the main menu in a standalone?"

All the menu screens etc have their own LUA in the titlesbank folder, you just need to edit them and add the new sound commands that allow you to run sound without it being attached to an entity, i'm not sure how to do it right now as I haven't even looked at the menu scripts or the new global sounds yet, but here's the list of new sound commands:

LoadGlobalSound
DeleteGlobalSound
PlayGlobalSound
LoopGlobalSound
StopGlobalSound

SetGlobalSoundSpeed
SetGlobalSoundVolume
GetGlobalSoundExist
GetGlobalSoundPlaying
GetGlobalSoundLooping

Check the bottom of your global.lua file in the scriptbank to see how the're used.

i5, NV960 2GB, 16GB memory, 2x 2TB Hybrid, Win10.
i3 , Intel integrated graphics, 6GB memory, 512GB Generic SATAIII Win8.1.
Intel Celeron (duel Core), Radeon integrated graphics, 4GB memory, 180gB Generic SATAII, WinVista.
Q6600, Intel integrated graphics, 8GB memory, 512GB Generic SATAII, Win7.

Login to post a reply

Server time is: 2024-11-25 02:01:00
Your offset time is: 2024-11-25 02:01:00