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 … 6 7 8 9 10 … 18 Next »
return in chat.listen()
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode
return in chat.listen()
19-08-2017, 09:13 PM, (This post was last modified: 19-08-2017, 09:18 PM by 4N0NYM.)
#1
4N0NYM Offline
absens
****
Posts: 561
Threads: 211
Joined: Dec 2014
return in chat.listen()
Does return dont work anymore or i m using it wrong ?


if SERVER then
function chatCommands( Message, Player )
LS = Message:lower()
LSC = LS:explode( " " )
if LSC[1] == "hey" then
if Player == ents.owner() then
say("Hello World")
end
return
end
end
chat.listen(chatCommands)
end

oh and i forget to add that :enableCollisions() dont work on a Wire Button.
Find
Reply
19-08-2017, 10:58 PM,
#2
Skeleton Offline
Cheating Donating Member ( ͡° ͜ʖ ͡°)
****
Posts: 199
Threads: 30
Joined: Nov 2014
RE: return in chat.listen()
You just needed to check the documentation of Starfall to find your answer.
But since I am kind here it is:

[Image: b959b16988eaefb819b06e034915f594.png]

[Image: giphy.gif]
Find
Reply
19-08-2017, 11:09 PM,
#3
4N0NYM Offline
absens
****
Posts: 561
Threads: 211
Joined: Dec 2014
RE: return in chat.listen()
Ty Skelly, but still have 1 more question, would be nice if Person or other Mods+ could answer it Smile
Find
Reply
19-08-2017, 11:24 PM,
#4
Kosmos Offline
GMod Admin
Posts: 180
Threads: 3
Joined: Dec 2013
RE: return in chat.listen()
You know, something can have collisions enabled yet not collide with players or props. You have to set the collision group (that's also how the context menu option does it by the way). Note that in this cases, collision group none means collide with everything.
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.