Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Door script error
Simpanra Offline
Senior Member

Posts: 314
Threads: 28
Joined: Mar 2011
Reputation: 0
#2
RE: Door script error

///////////////////////////
/ / Run first time starting map
void onStart ()
{
AddUseItemCallback ("", "the_key", "the_door", "KeyOnDoor", true);
AddUseItemCallback ("", "key_2", "derect", "usedkeyondoor", true);
}

void KeyOnDoor (string & in asItem, string & in asEntity)
{
SetSwingDoorLocked ("the_door", false, true);
PlaySoundAtEntity ("", "unlock_door", "the_door", 0, true);
RemoveItem ("the_key");
}
void usedkeyondoor (string & in asItem, string & in asEntity)
{
SetSwingDoorLocked ("derect", false, true);
PlaySoundAtEntity ("", "unlock_door", "derect", 0, true);
RemoveItem ("key_2");
}






Mended it =)
05-08-2011, 07:34 PM
Find


Messages In This Thread
Door script error - by masken94 - 05-08-2011, 07:31 PM
RE: Door script error - by Simpanra - 05-08-2011, 07:34 PM
RE: Door script error - by masken94 - 05-08-2011, 07:59 PM
RE: Door script error - by Simpanra - 05-08-2011, 08:07 PM
RE: Door script error - by masken94 - 05-09-2011, 09:02 AM



Users browsing this thread: 3 Guest(s)