How to use sounds?
 
Notifications
Clear all

[Solved] How to use sounds?

6 Posts
5 Users
1 Reactions
3,525 Views
(@yukine)
Active Member
Joined: 4 years ago
Posts: 9
Topic starter  

Hello, I recently got hooked to SH and its versatility.

I'd like to know if it's possible to play custom sounds with it.

As an example, when [TurnIndicatorLeft] is true or when [FuelPercent] reaches a certain percentage.

Thank you per advance. πŸ™‚


   
Quote
(@admin5435)
Prominent Member Admin
Joined: 7 years ago
Posts: 732
 

Hi ! sounds can be triggered by events, since there is no event out of box you can create a custom one using C:\Program Files (x86)\SimHub\NCalcScripts

You will find some examples in samples.ini,

Basically you need something likeΒ 

[ExportEvent]
name='Blinker'
trigger=[TurnIndicatorLeft]>0 || [TurnIndicatorRight]>0

Restart simhub it will create the event, then you can go inside event mapping and map the event to the sound.


   
Yukine reacted
ReplyQuote
(@yukine)
Active Member
Joined: 4 years ago
Posts: 9
Topic starter  

Incredibly easy and flexible system, thanks a lot!


   
ReplyQuote
(@frankalexandre)
Eminent Member
Joined: 4 years ago
Posts: 13
 

How do i use it for a visual event?

For example, i want a sound when [IRacingExtraProperties.iRacing_SlowCarAhead] is activated on the dash.

I tried:

trigger=if([IRacingExtraProperties.iRacing_SlowCarAhead]) but didnt work.

Β 

The correct is to use:Β  trigger=[IRacingExtraProperties.iRacing_SlowCarAhead] = 1 ????

Β 

SOLVED.

This post was modified 1 year ago 3 times by frankalexandre

   
ReplyQuote
(@mario5)
New Member
Joined: 1 year ago
Posts: 4
 

👍 👍 👍 👍 👍Β 


   
ReplyQuote
(@dadima)
Active Member
Joined: 2 years ago
Posts: 12
 

Hi. Sorry if I'm hijacking this post. Could it be possible if i want to play the beep sound on the mobile device/android apps for certain event when using simhub dash?Β 


   
ReplyQuote
Share: