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 Unlock Door by picking up the lantern [Solved]
ShipinShen Offline
Junior Member

Posts: 23
Threads: 7
Joined: Apr 2014
Reputation: 0
#6
RE: Unlock Door by picking up the lantern

(04-21-2014, 07:14 AM)SomethingRidiculous Wrote:
Spoiler below!

PHP Code: (Select All)
void OnStart()
{
SetEntityCallbackFunc("Lantern""OpenDoor");
SetLocalVarInt("Door"0);
}

void OpenDoor(string &in asEntitystring &in type
{
AddLocalVarInt("Door"1);
CheckLocal();
}

void CheckLocal()
{
if (
GetLocalVarInt("Door") == 1)
{
SetSwingDoorLocked("DoorName"falsetrue);
}



Thanks a lot man!

ShipinShen - YouTube
04-21-2014, 12:07 PM
Find


Messages In This Thread
RE: Unlock Door by picking up the lantern - by ShipinShen - 04-21-2014, 12:07 PM



Users browsing this thread: 1 Guest(s)