Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help
XeOnTricks Offline
Junior Member

Posts: 27
Threads: 12
Joined: Feb 2017
Reputation: 0
#4
RE: Help

(02-24-2017, 12:54 AM)MindScope Wrote: It says "cannot use this item this way" or something like that. Here's the script:
[Image: fhwRuq9.png]

try this. it may work


void OnStart()
{

AddUseItemCallback("", "Key", "Door/", "Unlock", true);

}


void Unlock(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked(asEntity, false, true);

PlaySoundAtEntity("", "unlock_door.snt", asEntity, 0, false);

RemoveItem(asItem);
}


if it does not work someone else can correct the issue. Smile hopefully this helped you.
02-24-2017, 06:22 AM
Find


Messages In This Thread
Help - by MindScope - 02-23-2017, 02:13 AM
RE: Help - by Romulator - 02-23-2017, 07:04 AM
RE: Help - by MindScope - 02-24-2017, 12:54 AM
RE: Help - by XeOnTricks - 02-24-2017, 06:22 AM
RE: Help - by Romulator - 02-24-2017, 09:25 AM
RE: Help - by XeOnTricks - 02-24-2017, 10:11 AM
RE: Help - by FlawlessHappiness - 02-24-2017, 10:58 AM
RE: Help - by MindScope - 02-24-2017, 08:34 PM



Users browsing this thread: 3 Guest(s)