Jump to content

Static Noise while Custom Scanner Track


AlexanderK.

Recommended Posts

Hello all, 

 

I'm developing  a Callouts Pack.
And I decided to add some custom tracks such as Radio PTT, Outro, Notification etc. sounds. (.wav)

I tried to have the same folder names as other callout packs with custom sounds. The path is:

 

LSPDFR / audio / scanner / [Callouts Pack Name] / {Tracks in .wav}

Speaking of code, that's an example of my code:

Functions.PlayScannerAudio("NOTIF_SOUND");
Game.DisplayNotification("~g~Code 4~w~, return to patrol.");
Functions.PlayScannerAudio("PTT");
Functions.PlayScannerAudio("ATTENTION_ALL_UNITS WE_ARE_CODE_4");
Functions.PlayScannerAudio("END_3DPRT_PTT");


Note that, ATTENTION_ALL_UNITS  &  WE_ARE_CODE_4   samples work. My custom ones doesn't. 

 

 

Another example

Functions.PlayScannerAudio("PTT");
Game.DisplayNotification("Dispacth, I see the lost pet. Let the Owner know my location to come and take it.");
Functions.PlayScannerAudio("REPORT_RESPONSE_COPY");
Functions.PlayScannerAudio("END_3DPRT_PTT");


When NOTIF_SOUND  and  END_3DPRT_PTT  and  PTT  play, they just produce a 1 second -very loud-  static noise. 


Any idea why that happens?


 

Spoiler

 

Here is a whole code block, if it helps...
 


if (IsSpeechFinished = true && Game.LocalPlayer.Character.DistanceTo(PetsSpawnPoint) <= 4f) {

	OfficerFoundPet = true;
	Game.LogTrivialDebug("Officer found Pet.");

	Functions.PlayScannerAudio("PTT");
	Game.DisplayNotification("Dispacth, I see the lost pet. Let the Owner know my location to come and take it.");
	Functions.PlayScannerAudio("REPORT_RESPONSE_COPY");
	Functions.PlayScannerAudio("END_3DPRT_PTT");

	Functions.PlayScannerAudio("NOTIF_SOUND");
	Game.DisplayHelp("You can leave the scene now. Dispatch will take care of everything else.");
	OfficerFoundPetandLeftScene = true;
}

 

 

 




Thank you! 🙂
 

Edited by AlexanderK.
+++++

HELLO!!     I'm a Greek guy and YouTuber.   I really like Modding and playing LSPDFR!  I'm  very familiar with Programming (Coding) and PC Hardware / Software. I'm also a Cuber ( I Solve Rubicks Cubes and other kinds).   

My YouTube Channel:  https://www.youtube.com/c/ATGGGR/

 

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...