REO-EE/_module/nss/perform_lockpick.nss
Jaysyn904 f82740bbbd Initial commit
Initial commit
2024-02-22 13:22:03 -05:00

20 lines
549 B
Plaintext

#include "colors_inc"
void LockAndClose(object oTarget)
{
SetLocked(oTarget, TRUE);
AssignCommand(oTarget, ActionCloseDoor(oTarget));
}
void main()
{
object oPC = OBJECT_SELF;
object oTarget = GetLocalObject(oPC, "LOCKPICK_TEMP_UNLOCKING_OBJECT");
FloatingTextStringOnCreature(ColorTokenPurple() + "Lockpicking complete! The object is now unlocked." + ColorTokenEnd(), oPC, FALSE);
SetLocked(oTarget, FALSE);
DelayCommand(120.0, LockAndClose(oTarget));
DeleteLocalObject(oPC, "LOCKPICK_TEMP_UNLOCKING_OBJECT");
}