Hmm, that's weird. Regardless of it being singleplayer, lastSaid() should return the last thing you typed.
Can you try to add runOnChat(1) ?
when i am using a E2 chip with lastSaid() and E:lastSaid() they don't seem to be outputting anything. i am on singleplayer so that may have something to do with it.
i used
if(Button == 1) {Ind=1,print(lastSaid()),print("hello sir")}
print(lastSaid())
when i pushed the button the indicator went off and it printed "hello sir" to the chat area but it didn't print last said.
i also tried
if(lastSaid() == "Hi") {print("hello sir")}
and that too didn't work. is there something i need to do to make this work? any advice would be apreciated
IDK about that. lastSaid should work anyway, as long as it runs at all (like runOnTick(1)).
Also, the above code... the horror!
Try updating your wiremod to see if it was broken?
well the biggest problem is that it seems to not be retrieving the last thing said. even if runOnChat(1)
Alternatively I can sound very patronising and ask: If you're on single player, your chat is the only thing in use. Have you actually tried saying anything before pushing the button?
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
You mean that he would've expected to see the last thing said without there being any said thing at all?
my code i am running is very straightforward:
@name Comp control
@inputs Buttons
@outputs Ind
runOnChat(1)
Said=lastSaid():explode(" ")
if(Said[2, string] == "hi") {print("hello sir")}
if(Buttons == 1) {Ind=1,print(lastSaid()),print("hello sir")}
print(lastSaid())
all of this is run with something having been said beforehand and it failes to read what was last said. i even updated my wire and all of my other E2 functions work just not lastSaid()
Bookmarks