+ Reply to Thread
Results 1 to 4 of 4

Thread: 3 questions, Creating a wait, Messages from chat, Command list.

  1. #1
    Wire Sofaking Tasuit can only hope to improve Tasuit's Avatar
    Join Date
    Jan 2009
    Location
    Sønderjylland, Denmark
    Posts
    414

    Default 3 questions, Creating a wait, Messages from chat, Command list.

    Hey guys! Im back >: D.
    Nah, i just want to ask you a couple of questions!

    Okay, so i got this expression2, and i want it to run 4 different sounds, now since there is no wait command i used a timer, but the timer seems to trigger the E2 all the time, so instead of the sounds playing only once, they seem to keep playing because the timer is changing, i tried to use the trigger thingy. But no results. So i thought that some of you guys might know a "Wait" command, i know that the Wait command is not in the E2, because of various reason. But someone must know of a way to make the effect of the Wait command? (no results on Wiki)

    Second of i would like to ask; When i get the Lastsaid() from the chat, how would look if it contained the word "if" (case-insensitive), the only thing i know off right now is how to find the "If" in chat, which means, that if i want it to trigger, i would have to write "If" instead of writing "if i am cool". (i tried to look at wiki, again no results)


    Thirdly i would like to ask if there is somewhere (lua file, on the web etc) i can view ALL the commands of the E2 (The wiki doesent have them all).
    I think i've heard something of a Lua file? Thanks in advance!

    -Tasuit

    Creator of the Unofficial servers

  2. #2
    Wire Sofaking Donkie is on a distinguished road Donkie's Avatar
    Join Date
    May 2008
    Location
    Sweden ofc
    Posts
    635

    Default Re: 3 Guestions, Creating a wait, Messages from chat, Command list.

    for the second question, do
    e2 Code:
    1. @outputs LS:string
    2. #LS = LastSaid
    3.  
    4. if(chatclk()&lastSpoke()==entity():owner()){
    5. LS=lastSaid()
    6. if(LS=="If"){
    7. Do stuff
    8. }
    9. }
    Last edited by Donkie; 06-08-2009 at 06:36 AM. Reason: forgot a bracket :P
    Quote Originally Posted by l3ulletje View Post
    Because making a thing which makes a thing saves you from ever have to make a thing again, you just tell your thing to make a thing and you have your new thing ready to use for something.
    Edit: But then again, a thing which can make everything is a unthinkable thing, I do think I can think of something which your thing can't make.

  3. #3
    Wire Weeaboo
    Pyro-Fire will become famous soon enough Pyro-Fire will become famous soon enough Pyro-Fire's Avatar
    Join Date
    Aug 2007
    Location
    WA, Australia
    Posts
    1,422

    Default Re: 3 Guestions, Creating a wait, Messages from chat, Command list.

    working as intended.

  4. #4
    Wire Sofaking Tasuit can only hope to improve Tasuit's Avatar
    Join Date
    Jan 2009
    Location
    Sønderjylland, Denmark
    Posts
    414

    Default Re: 3 Guestions, Creating a wait, Messages from chat, Command list.

    Havent had time to test it, but by the looks of it, it only checks if the string is "If". i want it to check if the string contains If

    About the Wait; I would really like to know this, since im facing a problem, any help appreciated, ill try and post some of my code so you can see it:

    Code:
    if (BeginLoop) {soundPlay(2,0,"vo/Breencast/br_collaboration01.wav"), TRun = 1}
    if (T > 2 & T < 4) {soundPlay(3,0,"vo/Breencast/br_collaboration02.wav")}
    if (T > 4 & T < 6) {soundPlay(4,0,"vo/Breencast/br_collaboration03.wav")}
    if (T > 6 & T < 8) {soundPlay(5,0,"vo/Breencast/br_collaboration04.wav"), Reset = 1}
    
    You see the problem is, instead of triggering the sounds once, it spams em, because the input T is changing (T is the Time of the timer)
    Last edited by Tasuit; 06-08-2009 at 10:08 AM.

    Creator of the Unofficial servers

+ Reply to Thread

Similar Threads

  1. What is the Black List, and what is the White List?
    By vortexnl in forum Expression Help
    Replies: 4
    Last Post: 05-21-2009, 02:54 PM
  2. [Helo] E2 Chat command
    By yuriman in forum Expression Help
    Replies: 9
    Last Post: 05-19-2009, 12:37 PM
  3. Error messages.
    By CAANz in forum Off-Topic
    Replies: 6
    Last Post: 06-11-2008, 01:28 PM
  4. Expression gate wait() command
    By Marsunpaisti in forum Ideas & Suggestions
    Replies: 2
    Last Post: 04-25-2008, 08:54 AM
  5. HUD Indicator console messages and bugs
    By andy1976uk in forum Bug Reports Archive
    Replies: 2
    Last Post: 02-03-2008, 01:08 PM

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