Locks

Functions


lock_is_jammed

sfall.h

bool lock_is_jammed(ObjectPtr obj)

Returns 1 if the lock (container or scenery) is currently jammed, 0 otherwise.


set_unjam_locks_time

sfall.h

void set_unjam_locks_time(int time)

Sets after how many hours (up to 127 hours) jammed locks will be unjammed if the player leaves the map. Also disables the auto unjam that occurs at midnight when the player is on the map. Passing 0 will disable the auto unjam mechanism completely. The auto unjam mechanism will be reset each time the player reloads the game.


unjam_lock

sfall.h

void unjam_lock(ObjectPtr obj)

Unjams a lock immediately without having to wait until the next day, or leave the map and then return after 24 hours. Does not work in use_skill_on_p_proc procedure.