content/hifi-content/elisa/production/rust-pills/scripts/outdated-scripts/checkPillOwner.js
2022-02-13 23:16:46 +01:00

36 lines
No EOL
811 B
JavaScript

//
// checkPillOwner.js
// Saves the pill owner data to prevent feeding other users pills
//
// Author: Elisa Lupin-Jimenez
// Copyright High Fidelity 2018
//
// Licensed under the Apache 2.0 License
// See accompanying license file or http://apache.org/
//
// All assets are under CC Attribution Non-Commerical
// http://creativecommons.org/licenses/
//
(function() {
print("loading checkPillOwner.js");
var pillOwner = "";
this.remotelyCallable = [
"getPillOwner",
"setPillOwner"
];
this.getPillOwner = function() {
print("returning owner " + pillOwner);
return pillOwner;
};
this.setPillOwner = function(avatarID) {
print("setting new owner as ", avatarID);
pillOwner = avatarID;
};
});