Team Spartan Cookies & Milk Forums
I need help - Printable Version

+- Team Spartan Cookies & Milk Forums (https://teamscm.co.uk)
+-- Forum: Garry's Mod (https://teamscm.co.uk/forum-4.html)
+--- Forum: Starfall (https://teamscm.co.uk/forum-7.html)
+--- Thread: I need help (/thread-957.html)



I need help - Captain Krisu - 30-05-2015

Starting Starfall, looking at Person's Starfall Tutorial and its helping really good.

So, is there a way to play sound at position, like at shakuras, earth or desert?


RE: I need help - SuperPlayer - 30-05-2015

In the starfall documentery is every important function listed but i searched it for you:


sounds.emitWorld( origin, path, amplitude, pitch )--The function
sounds.emitWorld( Vector( 7381.23, 12751.79, -5946.23 ), "alarm/sga_offworld-alarm.wav", 100, 100)--Example, plays a sound at hiigara

I hope that helped.


SuperPlayer


RE: I need help - Captain Krisu - 31-05-2015

(30-05-2015, 11:23 PM)SuperPlayer Wrote: In the starfall documentery is every important function listed but i searched it for you:


sounds.emitWorld( origin, path, amplitude, pitch )--The function
sounds.emitWorld( Vector( 7381.23, 12751.79, -5946.23 ), "alarm/sga_offworld-alarm.wav", 100, 100)--Example, plays a sound at hiigara

I hope that helped.


SuperPlayer

Yeah, I found the link to Starfall Documentation, it was in the SF's Github page. Thank you Super.


RE: I need help - Person8880 - 31-05-2015

(31-05-2015, 09:10 AM)KRISTIANKULTA Wrote: Yeah, I found the link to Starfall Documentation, it was in the SF's Github page. Thank you Super.
The version on GitHub is not the same as the one on the server. I forked Starfall from the original version long ago and the two versions are quite divergent.

I would not use their documentation seeing as it's going to be wrong a lot of the time. Use the in-game editor documentation, press the ? button. It's way easier to use and actually correct to what's on the server.


RE: I need help - Captain Krisu - 01-06-2015

(31-05-2015, 01:46 PM)Person8880 Wrote:
(31-05-2015, 09:10 AM)KRISTIANKULTA Wrote: Yeah, I found the link to Starfall Documentation, it was in the SF's Github page. Thank you Super.
The version on GitHub is not the same as the one on the server. I forked Starfall from the original version long ago and the two versions are quite divergent.

I would not use their documentation seeing as it's going to be wrong a lot of the time. Use the in-game editor documentation, press the ? button. It's way easier to use and actually correct to what's on the server.

Alright, thanks Person.


Edit 1: The sound doesn't seem to play, I tried TheSound.play() but I get "attempt to index global 'TheSound' (a nil value)"

Edit 2: emitWorld does not seem to work for me. But sounds.create does.

Can I use hologram as an entity for the sound, and play sound at the hologram?

I tried sounds.create(Hologram1,"thesoundpath") already. Not working.