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
Level Door error!
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#9
RE: Level Door error!

Try this. Should fix everything Smile
PHP Code: (Select All)
void OnStart()  //As pointed out by RaideX and daortir
{
AddUseItemCallback("OpenDoor""key_tomb_1""level_celler_1""UnlockLevelDoor"true);
}

//Removed the OnEnter() here, because there is one below :P

void UnlockLevelDoor(string &in asItemstring &in asEntity)  //Fixed referenced items
{
SetLevelDoorLocked(asEntityfalse);  //Changed Entity to asEntity
//RemoveItem(asitem);          //Changed to asItem. If you want it removed, remove the //.
}

////////////////////////////
// Run when entering map
void OnEnter()
{

}

////////////////////////////
// Run when leaving map
void OnLeave()
{



Discord: Romulator#0001
[Image: 3f6f01a904.png]
01-05-2014, 02:31 AM
Find


Messages In This Thread
Level Door error! - by Radical Batz - 01-04-2014, 12:11 PM
RE: Level Door error! - by Radical Batz - 01-04-2014, 05:37 PM
RE: Level Door error! - by RaideX - 01-05-2014, 01:40 AM
RE: Level Door error! - by Romulator - 01-05-2014, 02:07 AM
RE: Level Door error! - by daortir - 01-05-2014, 02:10 AM
RE: Level Door error! - by Romulator - 01-05-2014, 02:31 AM
RE: Level Door error! - by Radical Batz - 01-05-2014, 09:38 AM



Users browsing this thread: 1 Guest(s)