Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support


Post Reply 
 
Thread Rating:
  • 2 Vote(s) - 1.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to unlock door with key?
Author Message
Frontcannon Offline
Senior Member

Posts: 538
Joined: Jul 2010
Reputation: 2
Post: #4
RE: How to unlock door with key?

This screws up your script:

void USedKeyOnDoor(string &in asItem, string &in asEntity)
}
SetSwingDoorLocked("mansion_1", false, true);
PlaySoundAtEntity("", "unlock_door," "mansion_1", 0, false);
{ RemoveItem(key1

Way too many syntax errors.
Fixed:

void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("mansion_1", false, true);
PlaySoundAtEntity("", "unlock_door", "mansion_1", 0.0f, false);
RemoveItem("key1");
}

You also should take a look here.

edits
With every other read, I find a new syntax error. Do you check your script after saving?
-
There's a comma missing in your callback.


╔═════════════════╗
☺ Smoke weed everyday ☺
╚═════════════════╝
(This post was last modified: 12-09-2010 11:31 PM by Frontcannon.)
12-09-2010 11:25 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
How to unlock door with key? - HumiliatioN - 12-09-2010, 10:48 PM
RE: How to unlock door with key? - Frontcannon - 12-09-2010 11:25 PM
RE: How to unlock door with key? - house - 12-10-2010, 04:42 AM
RE: How to unlock door with key? - jens - 12-11-2010, 01:06 PM
RE: How to unlock door with key? - Tirilno - 07-06-2011, 10:18 PM
RE: How to unlock door with key? - Kyle - 07-06-2011, 10:26 PM
RE: How to unlock door with key? - Tirilno - 07-06-2011, 10:32 PM
RE: How to unlock door with key? - Kyle - 07-08-2011, 01:12 AM
RE: how do i do a jump scare - drumslaya - 09-21-2012, 01:43 PM
RE: How to unlock door with key? - Robby - 09-21-2012, 02:04 PM
RE: How to unlock door with key? - Robby - 09-26-2012, 04:25 PM
RE: How to unlock door with key? - Statyk - 09-26-2012, 04:23 PM



User(s) browsing this thread: 1 Guest(s)