+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: Need help with Expression 2

  1. #1
    Wire Noob dingodk's Avatar
    Join Date
    May 2009
    Posts
    4

    Default Need help with Expression 2

    Hi!

    Are there a command in Expression 2 that could write a message in the chat?

  2. #2
    Wire Sofaking Hitman271's Avatar
    Join Date
    Feb 2008
    Location
    Why? You looking for somebody?
    Posts
    731

    Default Re: Need help with Expression 2

    concommand("say hello world")
    Quote Originally Posted by Anticept View Post
    This is not some place where you can toss your dick around and expect people to suck it.
    Community Gpu Thread. Post Yours!

    Bouncy Ball

  3. #3
    Wire Sofaking Unsmart's Avatar
    Join Date
    Dec 2008
    Location
    Belgium OR BANland
    Posts
    1,965

    Default Re: Need help with Expression 2

    but you also need to have concmd enabled, check wiki for the code to enable

  4. #4
    goluch
    Guest goluch's Avatar

    Default Re: Need help with Expression 2

    thiers also print("hello World") but that only works in your chat box and nobody else's.

  5. #5
    Wire Noob dingodk's Avatar
    Join Date
    May 2009
    Posts
    4

    Default Re: Need help with Expression 2

    Yeah, but i need it to do when someone say "hi", the E2 says "hello" or something, i have get it to work but it doesnt check it all the time it only check it when i upload it again. Please help me.

  6. #6
    Wiremod Helper Lyinginbedmon's Avatar
    Join Date
    Mar 2009
    Location
    England
    Posts
    2,659

    Default Re: Need help with Expression 2

    [highlight=E2]runOnChat(1)
    if(lastSaid() = "hi"){concommand("say hello")}[/highlight]

    The Olympus Technologies drones, totally not SkyNet in Gmod form.
    Cronus: The Ultimate Drone, definitely SkyNet in Gmod form.
    The gBrain Project, the drone controls system that thinks it's better than you

  7. #7
    billywitchdoctor.com Whosdr's Avatar
    Join Date
    Dec 2008
    Posts
    2,300

    Default Re: Need help with Expression 2

    Quote Originally Posted by Lyinginbedmon View Post
    [highlight=E2]runOnChat(1)
    if(lastSaid() = "hi"){concommand("say hello")}[/highlight]
    I think you also need chatclk()

  8. #8
    Wiremod Helper Lyinginbedmon's Avatar
    Join Date
    Mar 2009
    Location
    England
    Posts
    2,659

    Default Re: Need help with Expression 2

    In that code, the only thing activating is the chat checking, so runOnChat is the only thing needed. chatClk() is more for if you have more than one thing set to trigger the expression.

  9. #9
    Wirererer malum's Avatar
    Join Date
    Feb 2009
    Posts
    217

    Default Re: Need help with Expression 2

    If you dont use chatClk() runOnChat() runs when ANYONE says something.

  10. #10
    Developer Matte's Avatar
    Join Date
    Jan 2009
    Location
    Norway
    Posts
    3,109

    Default Re: Need help with Expression 2

    The chatclk equals one each timethe chat is updated... Like runOnChat()...
    "If anybody says he can think about quantum physics without getting giddy, that only shows he has not understood the first thing about them."
    -- Niels Bohr

+ Reply to Thread
Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
proceed-collector
proceed-collector
proceed-collector
proceed-collector
linguistic-parrots
linguistic-parrots
linguistic-parrots
linguistic-parrots