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
Leveldoor 'Locked' Key not working!
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#8
RE: Leveldoor 'Locked' Key not working!

Nope. Doesn't matter.

This is how the script should look (Remember you cannot have 2 void OnStart):

void OnStart()
{
AddUseItemCallback("", "cryptkey", "cryptdoor", "UsedKeyOnDoor", true);

}


void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
PlaySoundAtEntity("", "unlock_door", "cryptdoor", 0, false);

SetLevelDoorLocked("cryptdoor", false);

RemoveItem(asItem);
}


Remember to check that all names are correct with capitals!
It's important!


If it doesn't work, show us the error, and your full script.

Trying is the first step to success.
02-15-2013, 04:05 PM
Find


Messages In This Thread
RE: Leveldoor 'Locked' Key not working! - by FlawlessHappiness - 02-15-2013, 04:05 PM



Users browsing this thread: 1 Guest(s)