Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Hotscreen

Add very hot effects to your screen. · By PerfectFox265

Question about mod

A topic by Ajlnlls created 26 days ago Views: 463 Replies: 4
Viewing posts 1 to 2

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.

(+1)

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.