Jump to content




I'm replicating the factions plugin for my Forge server with CC

computer lua help

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

#1 Agent Silence

  • Members
  • 319 posts
  • Location[string "FindMe"]:23143: bad argument #1 to 'returnPos' (vector expected, got nil)

Posted 12 May 2014 - 03:46 PM

But I don't know how to make a perimeter and a saved list of players in the faction.
How it's going to work is by using Wireless PDAs to send a red net signal every time they enter the perimeter to a underground computer with a command block, telling the command block to set them to adventure mode. Also saving what the players game mode was before the command block changed it, so when the player leaves, it sets the game mode back to the original game mode. If the players name is recognized in the faction, it bypasses the adventure mode border. Really any help at all would be appreciated. Thank you :)

#2 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 12 May 2014 - 06:53 PM

You could use the modem API to get the distance of the player from a known location by having them respond to modem messages and using the distance value. You'd have to find some way to force every player to carry a PDA and keep it turned on, of course. As well, you'd have to pre-populate every chunk with a computer to allow control of ownership of that chunk.

Also, don't bump your topic just because you feel like not enough attention has been paid to your question.

#3 Agent Silence

  • Members
  • 319 posts
  • Location[string "FindMe"]:23143: bad argument #1 to 'returnPos' (vector expected, got nil)

Posted 12 May 2014 - 07:13 PM

View PostLyqyd, on 12 May 2014 - 06:53 PM, said:

You could use the modem API to get the distance of the player from a known location by having them respond to modem messages and using the distance value. You'd have to find some way to force every player to carry a PDA and keep it turned on, of course. As well, you'd have to pre-populate every chunk with a computer to allow control of ownership of that chunk.

Also, don't bump your topic just because you feel like not enough attention has been paid to your question.
1. Thank you.
2. Sorry, I couldn't help myself





2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users