Im new to computercraft and i would like if someone tells me what is the:
function RCmaster()and
RCmaster()(at end) for, also about:
local sEvent, param = os.pullEvent("key")
.Thanks!
Posted 05 October 2015 - 12:36 PM
function RCmaster()and
RCmaster()(at end) for, also about:
local sEvent, param = os.pullEvent("key")
.Posted 05 October 2015 - 02:56 PM
function RCMaster()
RCMaster()
--# Here we declare the function foo
--# when the function is called it will
--# run all the code the function contains
local function foo()
print( "bar" )
end
foo() --# Call the function "foo", it should output "bar"( without the quotes ofcourse )
local sEvent, param = os.pullEvent( "key" )This line calls the function os.pullEvent, with the parameter "key", which will make it only listen for key events.
0 members, 1 guests, 0 anonymous users