fodev.net

FOnline Development => Questions and Answers => Topic started by: hexer on March 11, 2014, 01:02:19 pm

Title: Sound effects
Post by: hexer on March 11, 2014, 01:02:19 pm
Does mapper support placing sound effects on map or do I have to assign them to objects through scripts?
Title: Re: Sound effects
Post by: Wipe on March 12, 2014, 06:28:36 pm
Nop, have to be done in scripts; it's pretty easy with triggers, and i'm [almost] sure there should be some examples around.
Title: Re: Sound effects
Post by: hexer on March 17, 2014, 11:12:23 pm
Some questions regarding sound and music...

1) Do I have to assign voiced dialog through scripts? The dialog tool doesn't support voiced lines from the editor?
2) Can I control somehow worldmap music so different music starts to play when a different vehicle is used?
Title: Re: Sound effects
Post by: lisac2k on March 20, 2014, 06:31:25 pm
As for 1) you can script some general functions for playing soundfx (i.e. voiced dialogue) in your scripts and then pass the parameters from the dialogue editor... So, when player clicks on a dialogue line, the param is passed to script which then, in turn, plays specific sound file.

2) This should be quite possible; see the events in the scripts of some of our 2238 items, like picking up or using an item - this triggers an event which kicks in and makes something happen.