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
Script Help Leveldoor Problem
Togglevolt Offline
Junior Member

Posts: 10
Threads: 2
Joined: Nov 2011
Reputation: 0
#9
RE: Leveldoor Problem

I tried to put the "CheckLantern" in the interact callback tab on the lantern. Then the level door is locked even if I have the lantern on me.


CheckLantern looks like this:



void CheckLantern(string &in asEntity)
{
if(HasItem("lantern_1") == true){
SetLevelDoorLocked(asEntity, false);
}
else{
SetLevelDoorLocked(asEntity, true);
}

}


void OnEnter()
{

CheckLantern("level_wood_1");
}
11-13-2011, 11:03 PM
Find


Messages In This Thread
Leveldoor Problem - by Togglevolt - 11-13-2011, 07:27 PM
RE: Leveldoor Problem - by Your Computer - 11-13-2011, 08:07 PM
RE: Leveldoor Problem - by Togglevolt - 11-13-2011, 08:32 PM
RE: Leveldoor Problem - by Your Computer - 11-13-2011, 08:36 PM
RE: Leveldoor Problem - by Togglevolt - 11-13-2011, 08:42 PM
RE: Leveldoor Problem - by Your Computer - 11-13-2011, 08:49 PM
RE: Leveldoor Problem - by Togglevolt - 11-13-2011, 09:12 PM
RE: Leveldoor Problem - by Your Computer - 11-13-2011, 10:29 PM
RE: Leveldoor Problem - by Togglevolt - 11-13-2011, 11:03 PM
RE: Leveldoor Problem - by Your Computer - 11-14-2011, 01:20 AM
RE: Leveldoor Problem - by Togglevolt - 11-14-2011, 04:23 PM



Users browsing this thread: 2 Guest(s)