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
jens Offline
Frictional Games

Posts: 4,093
Threads: 199
Joined: Apr 2006
Reputation: 202
#6
RE: scripting: check if treasure chest is open

Add a debug message to DoorState and make sure the door and that area actually interacts so that the variable changes.

You also want to set AddEntityCollideCallback("storage_door1", "monster_scare3", "DoorState", true, 0);

to false

AddEntityCollideCallback("storage_door1", "monster_scare3", "DoorState", false, 0);

as the player could open and close the door several times and you want to keep checking that for each, with true it auto disabled after the first collision.
03-25-2011, 05:32 PM
Website Find


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



Users browsing this thread: 3 Guest(s)