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
Key to a level door
MaTPlays Offline
Junior Member

Posts: 21
Threads: 5
Joined: Aug 2013
Reputation: 0
#5
RE: Key to a level door

Now the error is, that this is unexpected end of file. Idk why, because I changed nothing at the end :/






void OnStart()
{
SetSkyBoxActive(true);
SetSkyBoxTexture("Name.dds");
SetPlayerLampOil(0.0f);
AddUseItemCallback("", "Keymaindoor', "Door_1", "UseKeyOnDoor_1", true);
}




void UseKeyOnDoor_1(string &in asItem, string &in asEntity)
{
SetLevelDoorLocked(asEntity, false);
PlaySoundAtEntity("", "unlock_door.snt", asEntity, 0, false);
RemoveItem(asItem);
}




void DoorLockedPlayer(string &in entity)
{
if(GetSwingDoorLocked("Door_3"))
{
SetMessage("Messages", "Msgname", 0);
}
}




void DoorLockedPlayer_1(string &in entity)
{
if(GetLevelDoorLocked("Door_1", true)
{
SetMessage("Messages", "Msgname1", 0);
}
}
08-08-2013, 10:36 PM
Find


Messages In This Thread
Key to a level door - by MaTPlays - 08-08-2013, 09:32 PM
RE: Key to a level door - by DeAngelo - 08-08-2013, 09:38 PM
RE: Key to a level door - by MaTPlays - 08-08-2013, 09:49 PM
RE: Key to a level door - by The chaser - 08-08-2013, 10:25 PM
RE: Key to a level door - by MaTPlays - 08-08-2013, 10:36 PM
RE: Key to a level door - by The chaser - 08-08-2013, 11:07 PM
RE: Key to a level door - by Tomato Cat - 08-09-2013, 12:08 AM
RE: Key to a level door - by MaTPlays - 08-08-2013, 11:10 PM
RE: Key to a level door - by The chaser - 08-09-2013, 11:20 AM
RE: Key to a level door - by MaTPlays - 08-09-2013, 07:18 PM



Users browsing this thread: 1 Guest(s)