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
Script help (Key to door)
QysteiN Offline
Junior Member

Posts: 45
Threads: 6
Joined: Nov 2011
Reputation: 0
#4
RE: Script help (Key to door)

I created a script:
Anyone can spot whats wrong?

I get error whenever i try to load my custom story:

////////////////////////////
// Run first time starting map
void OnStart()
{
AddUseItemCallback(''awesomekey_1'', ''castle_1'', ''UsedKeyOnDoor'', True);
}
void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked(''castle_1''' , false, true);
PlaySoundAtEntity('' '', ''unlock_door'' , ''castle_1'' , 0, false);
RemoveItem(''awesomekey_1'');
}

////////////////////////////
// Run when leaving map
void OnLeave()
{

I make YouTube videos and I'm currently working on a Amnesia custom story.

01-30-2012, 11:11 AM
Website Find


Messages In This Thread
Script help (Key to door) - by QysteiN - 01-30-2012, 10:27 AM
RE: Script help (Key to door) - by i3670 - 01-30-2012, 10:43 AM
RE: Script help (Key to door) - by flamez3 - 01-30-2012, 10:47 AM
RE: Script help (Key to door) - by QysteiN - 01-30-2012, 11:11 AM
RE: Script help (Key to door) - by Saren - 01-30-2012, 11:14 AM
RE: Script help (Key to door) - by flamez3 - 01-30-2012, 11:15 AM
RE: Script help (Key to door) - by Saren - 01-30-2012, 11:18 AM
RE: Script help (Key to door) - by QysteiN - 01-30-2012, 12:07 PM
RE: Script help (Key to door) - by flamez3 - 01-30-2012, 12:08 PM



Users browsing this thread: 1 Guest(s)