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
Expected Identifier Error
bkrstirregular Offline
Junior Member

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

The sound does play and it's a level door
05-02-2012, 04:06 AM
Find
Cranky Old Man Offline
Posting Freak

Posts: 986
Threads: 20
Joined: Apr 2012
Reputation: 38
#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
bkrstirregular Offline
Junior Member

Posts: 17
Threads: 2
Joined: May 2012
Reputation: 0
#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
Cranky Old Man Offline
Posting Freak

Posts: 986
Threads: 20
Joined: Apr 2012
Reputation: 38
#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
bkrstirregular Offline
Junior Member

Posts: 17
Threads: 2
Joined: May 2012
Reputation: 0
#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




Users browsing this thread: 1 Guest(s)