generated from Jaysyn/ModuleTemplate
19 lines
517 B
Plaintext
19 lines
517 B
Plaintext
void main()
|
|
{
|
|
object oTarget = GetNearestObjectByTag("Locked");
|
|
if (oTarget !=OBJECT_INVALID && (GetLocked(oTarget)))
|
|
{
|
|
ActionDoCommand(SetLocked(oTarget, FALSE));
|
|
AssignCommand(oTarget, SpeakString("Unlocked."));
|
|
SetCustomToken(103, "Unlocked");
|
|
}
|
|
if (oTarget !=OBJECT_INVALID && (!GetLocked(oTarget)))
|
|
{
|
|
ActionDoCommand(SetLocked(oTarget, TRUE));
|
|
AssignCommand(oTarget, SpeakString("Locked."));
|
|
SetCustomToken(103, "Locked");
|
|
}
|
|
|
|
}
|
|
|