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


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Why is the key to door script not working to me?
Wolfpa Offline
Junior Member

Posts: 14
Threads: 3
Joined: Aug 2013
Reputation: 0
#11
RE: Why is the key to door script not working to me?

Wait,could it be fixed with launching Amnesia like an administrator becouse
I'm in a homegroup?
08-05-2013, 09:19 PM
Find
Tomato Cat Offline
Senior Member

Posts: 287
Threads: 2
Joined: Sep 2012
Reputation: 20
#12
RE: Why is the key to door script not working to me?

(08-05-2013, 09:19 PM)Wolfpa Wrote: Wait,could it be fixed with launching Amnesia like an administrator becouse
I'm in a homegroup?

I don't think running it as an admin fixes it. There's this feature with some windows releases ("file virtualization", if I recall correctly) that has been known to cause issues with maps and such. I believe it's located under C:\Users\<user>\AppData\Local\VirtualStore.

Then again, I'm simply parroting what I've read from some other issues, this could be entirely unrelated to your specific problem.
08-05-2013, 09:53 PM
Find
FurtherGames Offline
Member

Posts: 72
Threads: 23
Joined: Apr 2013
Reputation: 1
#13
RE: Why is the key to door script not working to me?

(08-05-2013, 07:45 PM)Wolfpa Wrote: Did but still it doesn't work .I checked all names and its good,soooo...
WHAT THE HELL IS WRONG??

It can't be good otherwise the door would open. Are you opening a normal door or a level door to take you to another map?

If its a level door, you are using the wrong script.
08-06-2013, 09:06 AM
Find
Wolfpa Offline
Junior Member

Posts: 14
Threads: 3
Joined: Aug 2013
Reputation: 0
#14
RE: Why is the key to door script not working to me?

Thanks guys but nothing works and yes I'm using a normal door.
08-06-2013, 04:25 PM
Find
Wolfpa Offline
Junior Member

Posts: 14
Threads: 3
Joined: Aug 2013
Reputation: 0
#15
RE: Why is the key to door script not working to me?

What is that?
08-07-2013, 01:04 AM
Find
Wolfpa Offline
Junior Member

Posts: 14
Threads: 3
Joined: Aug 2013
Reputation: 0
#16
RE: Why is the key to door script not working to me?

Nevermind guys I found a working script.

:


void OnStart()
{
AddUseItemCallback("", "Key", "Door", "UseKeyOnDoor", true);
}

void UseKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked(asEntity, false, true);
PlaySoundAtEntity("", "unlock_door.snt", asEntity, 0, false);
RemoveItem(asItem);
}


Still don't know what was wrong with that other one but still great! Big Grin
08-07-2013, 07:19 AM
Find
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#17
RE: Why is the key to door script not working to me?

The names have changed, so the names have to be what was wrong.

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
08-07-2013, 10:05 AM
Find




Users browsing this thread: 2 Guest(s)