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


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Expected Identifier Error
Author Message
bkrstirregular Offline
Junior Member

Posts: 17
Joined: May 2012
Reputation: 0
Post: #11
RE: Expected Identifier Error

The sound does play and it's a level door
05-02-2012 04:06 AM
Find all posts by this user Quote this message in a reply
Cranky Old Man Offline
Posting Freak

Posts: 922
Joined: Apr 2012
Reputation: 37
Post: #12
RE: Expected Identifier Error

(05-02-2012 04:06 AM)bkrstirregular Wrote:  The sound does play and it's a level door
Then you're simply using the wrong function to unlock it.
Try this function instead:
SetLevelDoorLocked(string& asName, bool abLocked);
(Also note that level doors won't swing open.)

Noob scripting tutorial: From Noob to Pro

05-02-2012 05:01 AM
Find all posts by this user Quote this message in a reply
bkrstirregular Offline
Junior Member

Posts: 17
Joined: May 2012
Reputation: 0
Post: #13
RE: Expected Identifier Error

void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetLevelDoorLocked(string& "firstdoor1", true);
PlaySoundAtEntity("", "unlock_door", "firstdoor1", 0, false);
RemoveItem("key_1");
}

So like this?
05-02-2012 05:16 AM
Find all posts by this user Quote this message in a reply
Cranky Old Man Offline
Posting Freak

Posts: 922
Joined: Apr 2012
Reputation: 37
Post: #14
RE: Expected Identifier Error

(05-02-2012 05:16 AM)bkrstirregular Wrote:  void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetLevelDoorLocked(string& "firstdoor1", true);
PlaySoundAtEntity("", "unlock_door", "firstdoor1", 0, false);
RemoveItem("key_1");
}

So like this?
I don't know that particular function, but definitely more like this:
SetLevelDoorLocked("firstdoor1", false);

Noob scripting tutorial: From Noob to Pro

(This post was last modified: 05-02-2012 05:51 AM by Cranky Old Man.)
05-02-2012 05:50 AM
Find all posts by this user Quote this message in a reply
bkrstirregular Offline
Junior Member

Posts: 17
Joined: May 2012
Reputation: 0
Post: #15
RE: Expected Identifier Error

Omg...if you are not the most amazing person ever!! thank you so so much!!
05-02-2012 05:56 AM
Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: