Product Chat / sound problem

Author
Message
Nuska
9
Years of Service
User Offline
Joined: 28th Feb 2015
Location:
Posted: 1st Mar 2015 12:15
When I install a sound trigger on the folder.
Then I test the sound.
The sound will play when the player enters commands in the trigger.
Once the player comes back later than the trigger does not work anymore.
The trigger only works one time.

The problem I have with junigel sound admosphere.
And ordinary sounds like you are walking you hear him along a generator and if you are further away can not hear him.

Sound just creates the atmosphere in the game without sound is not much to it.

What can I do so that the sound works properly?

with best regards

Alexander
PM
Pirate Myke
Forum Support
14
Years of Service
Recently Online
Joined: 31st May 2010
Location: El Dorado, California
Posted: 1st Mar 2015 13:14
That is the way the script is by default, Enter the trigger zone, perform the action and destroy it self. This is good for one time entry. If you want that zone to stay active, then Copy the script to a new name, remove the Destroy(e) line from the renamed script. Save that file and attach it to the trigger thru the properties panel. LMB on the objet and choose properties. you will see towards the top of that panel the spot where you can change the script being called.

Hope that helps out.
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit

Nuska
9
Years of Service
User Offline
Joined: 28th Feb 2015
Location:
Posted: 1st Mar 2015 16:51
thanks for the info
PM
Nuska
9
Years of Service
User Offline
Joined: 28th Feb 2015
Location:
Posted: 1st Mar 2015 17:23
hello here I am again, unfortunately it does not work.
after I set the sound zone.
With the new lua script: as below

- LUA Script - precede every function and global member with lowercase name or script + '_main'
- Player Enters Sound Zone

soundinzone_init function (e)
end

soundinzone_main function (e)
if g_Entity [e] ['plrinzone'] == 1 then
PlaySound (e, 0)
ActivateIfUsed (e)
end
end

the game does not work anymore.
This keeps stabbing at loading at:

Initialising physics. up here running lua and gets stuck

PM
Jerry Tremble
GameGuru TGC Backer
12
Years of Service
User Offline
Joined: 5th Nov 2012
Location: Sonoran Desert
Posted: 1st Mar 2015 17:40
I believe you should remove the word "function" from your function names
MAME Cab PC: i7 4770@3.4Ghz (passmark 9945), 12GB RAM, Win 8.1/64, GeForce GTX645 (passmark 1898); Shiny new laptop: i7 4800MQ@2.7Ghz (passmark 8586), 16GB RAM, Win 8.1/64, GeForce GTX870M (passmark 3598); Old laptop: i5@2.3Ghz, 8GB RAM, Win 7/64, Intel 3000 graphics
PM
3com
10
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 1st Mar 2015 17:51
...And you should've a pop up in your statebar, telling you the nature of the error.
This usually happens when you've an script error, in your case like Jerry said above.
Tell us, what the error message say.

3com
Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz

OS: Windows 8.1 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics

PM
synchromesh
Forum Support
10
Years of Service
User Offline
Joined: 24th Jan 2014
Location:
Posted: 1st Mar 2015 18:06
You can always put in your sound zone .... go to properties .......Change...... Soundinzone.lua ....to.... Musiczone.lua to play your sound constantly
The only person ever to get all his work done by "Friday" was Robinson Crusoe..
PM
3com
10
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 1st Mar 2015 18:16 Edited at: 1st Mar 2015 18:18
even use LoopSound(entity index,slot).
https://forum.game-guru.com/thread/208970#msg2490403

edit: fixing link. We need preview post feature.

3com
Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz

OS: Windows 8.1 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics

PM

Login to post a reply

Server time is: 2024-11-23 03:40:39
Your offset time is: 2024-11-23 03:40:39