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
scripting: check if treasure chest is open
Pandemoneus Offline
Senior Member

Posts: 328
Threads: 2
Joined: Sep 2010
Reputation: 0
#5
RE: scripting: check if treasure chest is open

For doors you should just use
if (GetSwingDoorClosed(string &asName) == false) //door NOT closed
{
...do something...
}

[edit]
Or if you don't want anything to happen when the door is almost closed:

/**
* -1 = angle is close to 0, 1=angle is 70% or higher of max, 0=inbetween -1 and 1.
*/
if (GetSwingDoorState(string &asName) != -1)
{
...do something...
}

(This post was last modified: 03-25-2011, 05:26 PM by Pandemoneus.)
03-25-2011, 05:23 PM
Find


Messages In This Thread
RE: scripting: check if treasure chest is open - by Pandemoneus - 03-25-2011, 05:23 PM



Users browsing this thread: 2 Guest(s)