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
Problem With Unlock Level Door
JenniferOrange Offline
Senior Member

Posts: 424
Threads: 43
Joined: Jun 2011
Reputation: 33
#2
RE: Problem With Unlock Level Door

there is a different function for level doors.
void OnStart()
{
AddUseItemCallback("", "SecondLevel", "NextLevel", "UnlockNextLevel", true);
}
void UnlockNextLevel(string &in asItem, string &in asEntity)
{
SetLevelDoorLocked("NextLevel", false);
PlaySoundAtEntity("", "unlock_door", "NextLevel", 0, false);
RemoveItem("SecondLevel");
}
your script was also out of place for some reason. void OnStart() is always at the top.



Ba-da bing, ba-da boom.
12-04-2011, 09:07 PM
Find


Messages In This Thread
Problem With Unlock Level Door - by narutohokager - 12-04-2011, 08:59 PM
RE: Problem With Unlock Level Door - by JenniferOrange - 12-04-2011, 09:07 PM



Users browsing this thread: 1 Guest(s)