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!
VeNoMzTeamHysterical Offline
Member

Posts: 240
Threads: 36
Joined: Dec 2012
Reputation: 3
#9
RE: Leveldoor 'Locked' Key not working!

(02-15-2013, 04:05 PM)BeeKayK Wrote: 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.

OMG it works now you got + rep'd sir Big Grin

http://www.frictionalgames.com/forum/thread-21719.html
Evil Awaking Work In Progress!
Hours Spend 472.
02-15-2013, 04:10 PM
Website Find


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



Users browsing this thread: 1 Guest(s)