Just a thought I had about adding locks to gates, but I don't have the knowledge to try implement it.
Basically, we create a selfaction to add a lock to gates. We can restrict this by item ID if nessesary.
I was thinking it would work like so:
Set a new column in the instance_building named 'lockCode'
Use the following 'code':
if (gate) then {
if (!haslock) then {
scrollwheel > Lock Gate?;
_gateID = get gate UID;
_code = get player GUID;
_gateID setVariable {"lockCode", _code};
Flash Message> Gate Locked!;
}
else {
scrollwheel > Unlock?
_gateID = get gate UID;
_key = _gateID getVariable "lockCode";
if { _key = (get playerGUID)} then {Sucess!!} else {Fail!};
}
Would it work? Am I chasing dragons here?
Basically, we create a selfaction to add a lock to gates. We can restrict this by item ID if nessesary.
I was thinking it would work like so:
Set a new column in the instance_building named 'lockCode'
Use the following 'code':
if (gate) then {
if (!haslock) then {
scrollwheel > Lock Gate?;
_gateID = get gate UID;
_code = get player GUID;
_gateID setVariable {"lockCode", _code};
Flash Message> Gate Locked!;
}
else {
scrollwheel > Unlock?
_gateID = get gate UID;
_key = _gateID getVariable "lockCode";
if { _key = (get playerGUID)} then {Sucess!!} else {Fail!};
}
Would it work? Am I chasing dragons here?