Hello all, I have been currently using the ID of each computer to identify the locations that my program transports players between. However, it would allow for a lot more flexibility if the computer label could be used instead of the computer ID.
Is there a way to retrieve the current computer label as a variable? Thanks.
[info]How to get the label of the current computer
Started by NullSchritt, May 31 2013 12:59 AM
3 replies to this topic
#1
Posted 31 May 2013 - 12:59 AM
#2
Posted 31 May 2013 - 01:08 AM
Could you be more specific, from what I'm understanding from this you're teleporting players with a program? If so whats wrong with using the computers ID, to define a ID as a variable do
local myVariableForTheComputer = 10 --The computer IDFrom there you can set it up to have your 'teleporting computers' check with a main system computer for the ID Label or something.
#3
Posted 31 May 2013 - 01:17 AM
yes it is possible to get the computer's label, using os.getComputerLabel. You are also able to set the computer's label with os.setComputerLabel.
#4
Posted 31 May 2013 - 01:30 AM
theoriginalbit, on 31 May 2013 - 01:17 AM, said:
yes it is possible to get the computer's label, using os.getComputerLabel. You are also able to set the computer's label with os.setComputerLabel.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











