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
How to lock/unlock a chest
ingedoom Offline
Member

Posts: 120
Threads: 12
Joined: Feb 2012
Reputation: 0
#6
RE: Why wont this callback work? (spot a bug)

Thx guys i finally made it work! Here is the final script:

//--------------------------------------------------
void OnStart()
{
SetEntityCallbackFunc("bloodynote", "interactnote1");

}


void interactnote1(string &in asEntity, string &in OnPickUp)
{
SetLeverStuckState("lanternchest", 0, false);
}
//------------------------------------------------

Btw i set the bool effect false, didint know what it was for. But if i set it to true then what do you guess would happen?

[Image: 23778.png]
02-16-2012, 11:46 AM
Website Find


Messages In This Thread
How to lock/unlock a chest - by ingedoom - 02-16-2012, 09:37 AM
RE: Why wont this callback work? (spot a bug) - by ingedoom - 02-16-2012, 11:46 AM



Users browsing this thread: 1 Guest(s)