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 »
Starfall Help
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pages (5): « Previous 1 2 3 4 5 Next »
Threaded Mode
Starfall Help
28-05-2015, 02:37 PM,
#31
Alanzote Offline
TSCM Member
***
Posts: 123
Threads: 40
Joined: Oct 2013
RE: Starfall Help
Is there a way to stop sounds in Starfall? The soundConfusedtop() doesn't work!

[Image: stargate_kawoosh_animation_HD_by_SergeyDruid.gif] [Image: kecepatan-cahaya-light-speed-warp-drive2....gif?w=640]
Find
Reply
28-05-2015, 04:10 PM,
#32
Blackhawk Offline
GMod Admin
Posts: 204
Threads: 9
Joined: Sep 2013
RE: Starfall Help
soundConfusedtop() does work, you probably just used it wrong. Could you show me the lines of code which create and stop the sound?
Find
Reply
30-05-2015, 11:13 PM,
#33
Alanzote Offline
TSCM Member
***
Posts: 123
Threads: 40
Joined: Oct 2013
RE: Starfall Help
Just say to me how it Works! =)

[Image: stargate_kawoosh_animation_HD_by_SergeyDruid.gif] [Image: kecepatan-cahaya-light-speed-warp-drive2....gif?w=640]
Find
Reply
31-05-2015, 01:42 AM,
#34
Red The Blue Color Offline
TSCM Super Donating Member
****
Posts: 422
Threads: 34
Joined: Feb 2015
RE: Starfall Help
(30-05-2015, 11:13 PM)Alanzote Wrote: Just say to me how it Works! =)

Check my shared I have a basic alarm chip that does what your doing. Should be easy enough to figure out after seeing it Big Grin

"with it's superior software, i have no doubt it will succeed in finding fuck all" - T-17, 2016

[Super Member] [ENCOM] т-ѕсм.Red The Blue Color™: server do you support Hitler?
[Server] srcds_linux: The probabilty is about 99.99%, so interpret that how you want to.
Find
Reply
31-05-2015, 09:30 PM,
#35
Alanzote Offline
TSCM Member
***
Posts: 123
Threads: 40
Joined: Oct 2013
RE: Starfall Help
I've seen that render.setMaterial requires a IMaterial but how I use this IMaterial?

[Image: stargate_kawoosh_animation_HD_by_SergeyDruid.gif] [Image: kecepatan-cahaya-light-speed-warp-drive2....gif?w=640]
Find
Reply
31-05-2015, 09:37 PM,
#36
SuperPlayer Offline
TSCM Super Member
****
Posts: 234
Threads: 30
Joined: Oct 2014
RE: Starfall Help

Texture = render.getTextureID( MATERIAL )
render.setTexture( Texture )

Thats it. If you wait for a few more days i will have a tutorial where i explain how to use starfall screens.

SuperPlayer
Find
Reply
03-06-2015, 12:16 AM,
#37
Alanzote Offline
TSCM Member
***
Posts: 123
Threads: 40
Joined: Oct 2013
RE: Starfall Help
(28-05-2015, 04:10 PM)Blackhawk Wrote: soundConfusedtop() does work, you probably just used it wrong. Could you show me the lines of code which create and stop the sound?
How do I use it? I used just soundConfusedtop() because the SF Doc doesn't explain anything!

[Image: stargate_kawoosh_animation_HD_by_SergeyDruid.gif] [Image: kecepatan-cahaya-light-speed-warp-drive2....gif?w=640]
Find
Reply
03-06-2015, 12:25 AM, (This post was last modified: 03-06-2015, 12:25 AM by Destiny's Player.)
#38
Destiny's Player Offline
A passing by member
***
Posts: 237
Threads: 35
Joined: Dec 2013
RE: Starfall Help
The "sound" part of SoundConfusedtop() should be a variable that you set the actual sound to. i.e.

--This here sets a variable to a sound.
Beep = sounds.create(SomeEntity,"Path/To/The/Beep")

--This here plays the sound.
Beep.play()

--This here stops the sound.
Beep.stop()

The documentation doesn't really explain it because it's placed under "Types", which lists all the functions that are used ON something, not just by themselves.
Find
Reply
03-06-2015, 05:57 PM,
#39
Person8880 Offline
gpj.ecafllorT
*******
Posts: 2,407
Threads: 45
Joined: Sep 2013
RE: Starfall Help
(03-06-2015, 12:25 AM)Destinys Player Wrote: The "sound" part of SoundConfusedtop() should be a variable that you set the actual sound to. i.e.

--This here sets a variable to a sound.
Beep = sounds.create(SomeEntity,"Path/To/The/Beep")

--This here plays the sound.
Beep.play()

--This here stops the sound.
Beep.stop()

The documentation doesn't really explain it because it's placed under "Types", which lists all the functions that are used ON something, not just by themselves.
Need a :, not a . to call methods, i.e
Beep:play()
BeepConfusedtop()
Otherwise you'll get a type error as methods are really just functions whose first argument is magically the object they're being called on.
Find
Reply
16-06-2015, 04:21 PM, (This post was last modified: 16-06-2015, 04:51 PM by shinji144.)
#40
shinji144 Offline
TSCM Member
***
Posts: 5
Threads: 2
Joined: Jun 2015
Question  RE: Starfall Help
I'm having trouble figuring out why print behaves the way it does in the following example.
Code:
--@name print test --@author Shinji (STEAM_0:0:13398623) http://steamcommunity.com/profiles/76561197987062974/ local asdf1 = "1" print(asdf1) --shared if SERVER then --server local asdf2 = "2" print(asdf2) else --client local asdf3 = "3" print(asdf3) end
runs as - with starfall processor,
[Image: G8AgoiI.png]
The output of 1 makes sense, server and client should both print. However, shouldn't the output of 2 be only in blue? And why does 3 not print at all?

Can anyone explain why the 2 output also prints as client, and why the 3 output does not print at all?

EDIT:
Tried using a starfall screen at Divran's suggestion, and got this-
(adding --@sharedscreen directive)
[Image: OkusgyM.png]
Now 3 prints but it also seems to print as server, 2 also still prints as client. Divran mentioned that this is debug print. Is there a way to turn this off so only server prints server, client prints client, and shared prints on both client and server- else a future feature request perhaps?

Also, why does 1 print twice to server and client?
Website Find
Reply
« Next Oldest | Next Newest »
Pages (5): « Previous 1 2 3 4 5 Next »


  • View a Printable Version
Forum Jump:


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

Powered By MyBB, © 2002-2026 MyBB Group.