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


Thread Rating:
  • 2 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help destroying key after use?
zombiehacker595 Offline
Member

Posts: 141
Threads: 51
Joined: Mar 2012
Reputation: 3
#1
destroying key after use?

how do my key after use
i have takin heeps out out of the script this is just the door opening door thingy
void OnStart()
{
AddUseItemCallback("OpenDoor", "key_study_1", "level_wood_1", "UnlockLevelDoor", true);

}
void OnEnter()
{
}
void OnLeave()
{
}
void UnlockLevelDoor(string &in item, string &in entity)
{
SetLevelDoorLocked(entity, false);
}
what would i have to add to destory the key after using it to unlock the door?
03-31-2012, 01:41 PM
Find Reply


Messages In This Thread
destroying key after use? - by zombiehacker595 - 03-31-2012, 01:41 PM
RE: destroying key after use? - by RedMser - 03-31-2012, 01:52 PM
RE: destroying key after use? - by Xanthos - 03-31-2012, 03:38 PM
RE: destroying key after use? - by JetlinerX - 03-31-2012, 05:25 PM



Users browsing this thread: 1 Guest(s)