I am trying to create a door that detects which player opened it, and records that in a log. I have had no experience using wired modems, player detectors, and creating documents in a computer ( I know, that's a lot). Please help!
Any response is appreciated! Thanks in advance!
How To Create A Player Detector Door?
Started by austinv11, Sep 28 2013 06:32 PM
3 replies to this topic
#1
Posted 28 September 2013 - 06:32 PM
#2
Posted 28 September 2013 - 08:34 PM
You should post your current code. If you don't have any code, you should ask more specific questions about what you need to know.
You should also read some of the documentation on the wiki.
You should also read some of the documentation on the wiki.
#3
Posted 28 September 2013 - 11:37 PM
Once you've placed the player detector next to the door, you'll need to check for an event to occur. The event triggered by player detectors is "player". This allows you to open the door when a particular player, or any player, has activated the player detector and record the player's name.
Here's a script that opens the door located on 'doorSide' and writes the players name to the file located at 'logFilePath'.
Here's a script that opens the door located on 'doorSide' and writes the players name to the file located at 'logFilePath'.
Spoiler
#4
Posted 29 September 2013 - 07:18 AM
Grim Reaper, on 28 September 2013 - 11:37 PM, said:
Once you've placed the player detector next to the door, you'll need to check for an event to occur. The event triggered by player detectors is "player". This allows you to open the door when a particular player, or any player, has activated the player detector and record the player's name.
Here's a script that opens the door located on 'doorSide' and writes the players name to the file located at 'logFilePath'.
Here's a script that opens the door located on 'doorSide' and writes the players name to the file located at 'logFilePath'.
Spoiler
Thanks! Just need to edit a few lines of code to better suit my preferences, otherwise nice job
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











