34 posts
Posted 26 January 2013 - 09:16 AM
question i use os.pullevent all the time for cursor and bottons how do i make it so if they press e do this but dont wait for them to press e let them use the computer regulary but if they press e do this?
1852 posts
Location
Sweden
Posted 26 January 2013 - 09:20 AM
What..?
event, p1 = os.pullEvent()
if event == "char" and p1 == "e" then
--Do Something
end
This What you want?
1852 posts
Location
Sweden
Posted 26 January 2013 - 09:21 AM
Just some weird grammar you had there..
EDIT: Grammar Nazi On Duty! :P/>
309 posts
Location
Sliding between sunbeams
Posted 26 January 2013 - 10:46 AM
What he means is that you can use the computer like you normally would but if "e" is pressed then something happens..
Good question though.. I dont know how to do that and the script hellkid98 posted wont work, that would freeze the computer untill "e" is pressed…
88 posts
Location
UK
Posted 26 January 2013 - 10:52 AM
What do you mean by "let them use the computer regulary"?
2088 posts
Location
South Africa
Posted 26 January 2013 - 10:56 AM
You will need a big while true do loop or use parallel.waitForAny().