Jump to content




How To Create A Player Detector Door?


  • You cannot reply to this topic
3 replies to this topic

#1 austinv11

  • Members
  • 107 posts

Posted 28 September 2013 - 06:32 PM

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!

#2 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

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.

#3 Grim Reaper

  • Members
  • 503 posts
  • LocationSeattle, WA

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'.
Spoiler


#4 austinv11

  • Members
  • 107 posts

Posted 29 September 2013 - 07:18 AM

View PostGrim 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'.
Spoiler

Thanks! Just need to edit a few lines of code to better suit my preferences, otherwise nice job :) !





2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users