Add very hot effects to your screen. · By PerfectFox265
Hi. I'm trying to create a mod and I want to know how to modify phs_lock_data. For example, I want to change the password and lock_duration.
You can change lock duration using:
var lock_menu = HS.menu.get_node("LockedMenu")
lock_menu.remaining_seconds = TIME_IN_SECONDS
Yeah, I know this function, but I didn't found a way to modify the password and behavior. I think they’re stored in phs_lock_data.
Finally found it. Here's how you can lock it:
var LockedMenu = HS.menu
LockedMenu._on_line_edit_password_text_submitted(YOUR_PASSWORD)
Remove lock:
var LockedMenu = HS.menu.get_node("LockedMenu")
LockedMenu.remove_locked_password()
Got it, really appreciate.