![]() |
|
Starfall 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: Starfall Help (/thread-937.html) |
RE: Starfall Help - Alanzote - 28-05-2015 Is there a way to stop sounds in Starfall? The sound top() doesn't work!
RE: Starfall Help - Blackhawk - 28-05-2015 sound top() does work, you probably just used it wrong. Could you show me the lines of code which create and stop the sound?
RE: Starfall Help - Alanzote - 30-05-2015 Just say to me how it Works! =) RE: Starfall Help - Red The Blue Color - 31-05-2015 (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
RE: Starfall Help - Alanzote - 31-05-2015 I've seen that render.setMaterial requires a IMaterial but how I use this IMaterial? RE: Starfall Help - SuperPlayer - 31-05-2015
Thats it. If you wait for a few more days i will have a tutorial where i explain how to use starfall screens. SuperPlayer RE: Starfall Help - Alanzote - 03-06-2015 (28-05-2015, 04:10 PM)Blackhawk Wrote: soundHow do I use it? I used just sound top() because the SF Doc doesn't explain anything!
RE: Starfall Help - Destiny's Player - 03-06-2015 The "sound" part of Sound top() should be a variable that you set the actual sound to. i.e.
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. RE: Starfall Help - Person8880 - 03-06-2015 (03-06-2015, 12:25 AM)Destinys Player Wrote: The "sound" part of SoundNeed a :, not a . to call methods, i.e
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.
RE: Starfall Help - shinji144 - 16-06-2015 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![]() 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) ![]() 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? |