So lemme get something straight first. You can provide me with guides, and tell me to SEARCH BEFORE YOU POST and, in truth I did. However, I need help.
What I Need
So basically, I’m creating a prison game, where if you attack another player or enter a restricted Area, then You go from “Peaceful” to “Hostile.” This hostile thing also goes away after the prisoner gets arrested, oofed, or just after some time. During the “Hostile” form, the Security also can tase and arrest/attack and oof the prisoner
^^^^
Yeah I just need help with that.
I also need help with, “approved” which any of staff members will give, and can pass over the Restricted zones without gaining “Hostile”
I also need a way to spawn players in their own cell, and the cells are labled “Someone’s Cell”
Can you give more info on how you want this to work? What does each do? For a restricted area, you could use a zone. You cant detect if someone attacks someone else but you can use a lifecycle to detect when a gadget is fired.
So basically, lets say a prisoner hasn’t done ANYTHING bad, but then they enter a restricted zone only allowed to the Facility Managers. Then, they go from “A good boy/girl/them” to a “Bad person”
This allows the Security to tase and arrest/attack and oof the prisoner
Can you label a cell with a player id to only assign a cell to one person?
I think for the trespassing part you can use a zone that activates a trigger, the trigger is player scoped and can be deactivated and activated based on if you have access.
If prisoners go to hostile when attacking you can use the lifecycle device to trigger a trigger that is player scoped and only activates if your a prisoner and if you have a punch mechanic the tag zone (if you use one, Im assuming you would if you had a punch) can make you hostile when you tag some (or punching the guard)
just use zones for the restricted area stuff
(Enter zone > switch to hostile)
(Leave zone > switch to peaceful)
The attack thing
And for the other thing, we don´t really got a way to detect damage like that, sorry
What you can do is add some npc guards with some prop infront of them, if you attack the guard, the prop is destroyed and sends a signal to turn on hostile.