Hi everyone! I’m confused on making a game. I’m trying to make it so that every player in-game have a house (say max of 10) and that if there isn’t a player inhabiting that house there is an NPC sentry there. How do I make it so that one house belongs to one player and they can lock and unlock it? I also want them to be able to add a TV in there. Help plz! Thanks, Idhant_Master03.
Welcome back @Idhant_Master03!
hi @Toxic ! Thanks for the welcome!
So I’m thinking Everyone is assigned a house using player ids.
confusion… what does that mean
Search player id guide in search.
one sec im afk for a few min
ok
what if you put sentries in every house and buttons outside every house the player can press a button to get the house deactivating that sentry and all the other buttons
Make the button activation scope player scoped.
When someone claims a house, a signal goes to the button which activates it only for the claimer. Use block code to identity which state the door is in (open, closed) and a property to determine also. Then have it activate or deactivate the barrier based on its current state!
Hi @Skizzle ! That’s a great idea! Thanks!
I’m a little confused…
but it sounds good! please elaborate
Hello? You still here?
We do this using a global-scoped button heading toward the player-scoped button with a wire telling it to activate it, at the same time the global-scoped button is deactivated using a wire repeater receiving a wire pulse then sending it back to the button telling it to deactivate it.
so you’re saying a button can deactivate for one player only
yes just set the scope to player
ok thanks!
This topic was automatically closed 3 hours after the last reply. New replies are no longer allowed.