Team Spartan Cookies & Milk Forums
  • Issue Tracker
  • Donations
  • Search
  • Member List
  • Help

Register

Team Spartan Cookies & Milk Forums Garry's Mod Starfall v
« Previous 1 … 13 14 15 16 17 18 Next »
I need help
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode
I need help
30-05-2015, 07:15 PM,
#1
Captain Krisu Offline
Valued donator and member
****
Posts: 38
Threads: 14
Joined: Nov 2013
I need help
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?

I like sdwel
Find
Reply
30-05-2015, 11:23 PM,
#2
SuperPlayer Offline
TSCM Super Member
****
Posts: 234
Threads: 30
Joined: Oct 2014
RE: I need help
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
Find
Reply
31-05-2015, 09:10 AM, (This post was last modified: 31-05-2015, 09:10 AM by Captain Krisu.)
#3
Captain Krisu Offline
Valued donator and member
****
Posts: 38
Threads: 14
Joined: Nov 2013
RE: I need help
(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.

I like sdwel
Find
Reply
31-05-2015, 01:46 PM,
#4
Person8880 Offline
gpj.ecafllorT
*******
Posts: 2,407
Threads: 45
Joined: Sep 2013
RE: I need help
(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.
Find
Reply
01-06-2015, 12:17 PM, (This post was last modified: 07-06-2015, 08:03 PM by Captain Krisu.)
#5
Captain Krisu Offline
Valued donator and member
****
Posts: 38
Threads: 14
Joined: Nov 2013
RE: I need help
(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.

I like sdwel
Find
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
Forum Jump:


Users browsing this thread: 1 Guest(s)
Contact UsTeam Spartan Cookies & MilkReturn to TopLite (Archive) ModeMark all forums readRSS Syndication

Powered By MyBB, © 2002-2026 MyBB Group.