The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
#1
How to lock/unlock a chest

When i pick up my note i want the chest to unstuck, the map does not crash when i load it and all my other scripting works fine. It's just this thing i can't make happen ;(.


Any suggestions? Am i making the setpropstuckstate wrong perhaps?


Here is my callback


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

}




Here is my function:


void interactnote1(string &in asEntity, string &in type)
{
SetPropObjectStuckState("lanternchest", 0);
}

[Image: 23778.png]
(This post was last modified: 02-27-2012, 01:23 PM by ingedoom.)
02-16-2012, 09:37 AM
Website Find


Messages In This Thread
How to lock/unlock a chest - by ingedoom - 02-16-2012, 09:37 AM



Users browsing this thread: 1 Guest(s)