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
Samuelblitz Offline
Junior Member

Posts: 16
Threads: 4
Joined: Feb 2011
Reputation: 0
#7
RE: scripting: check if treasure chest is open

(03-25-2011, 05:23 PM)Pandemoneus Wrote: 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...
}

Thank you so much! That completely slipped my mind, haha.
It worked perfectly, thank you
03-25-2011, 05:38 PM
Find


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



Users browsing this thread: 1 Guest(s)