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
CoolGuyZ65 TC help thread
Apjjm Offline
Is easy to say

Posts: 496
Threads: 18
Joined: Apr 2011
Reputation: 52
#16
RE: CoolGuyZ65 TC help thread

Your callback function is called "KeyOnDoor" but you passed in "UseKeyOnDoor" into the AddUseItemCallBack code. Try the following.

////////////////////////////
// Run first time starting map
void OnStart()
{
    AddUseItemCallback("", "Storage_Key", "storage_1", "UseKeyOnDoor", true);
}

void UseKeyOnDoor(string &in asItem, string &in asEntity)

{
    SetLevelDoorLocked("storage_1", false);
    PlaySoundAtEntity("", "unlock_door", "storage_1", 0, false);
    RemoveItem("Storage_Key");
}

////////////////////////////
// Run when entering map
void OnEnter()
{

}

////////////////////////////
// Run when leaving map
void OnLeave()
{

}
01-16-2012, 01:16 AM
Find


Messages In This Thread
CoolGuyZ65 TC help thread - by CoolGuyZ65 - 01-15-2012, 02:50 AM
RE: My TC help thread - by RawkBandMan - 01-15-2012, 02:52 AM
RE: My TC help thread - by Your Computer - 01-15-2012, 02:57 AM
RE: My TC help thread - by CoolGuyZ65 - 01-15-2012, 03:03 AM
RE: My TC help thread - by flamez3 - 01-15-2012, 02:58 AM
RE: My TC help thread - by Your Computer - 01-15-2012, 03:09 AM
RE: My TC help thread - by CoolGuyZ65 - 01-15-2012, 03:13 AM
RE: My TC help thread - by RawkBandMan - 01-15-2012, 03:18 AM
RE: My TC help thread - by Your Computer - 01-15-2012, 03:22 AM
RE: My TC help thread - by CoolGuyZ65 - 01-15-2012, 03:26 AM
RE: CoolGuyZ65 TC help thread - by Apjjm - 01-15-2012, 06:55 AM
RE: CoolGuyZ65 TC help thread - by Statyk - 01-15-2012, 03:31 PM
RE: CoolGuyZ65 TC help thread - by CoolGuyZ65 - 01-15-2012, 06:48 PM
RE: CoolGuyZ65 TC help thread - by CoolGuyZ65 - 01-15-2012, 10:17 PM
RE: CoolGuyZ65 TC help thread - by CoolGuyZ65 - 01-16-2012, 12:06 AM
RE: CoolGuyZ65 TC help thread - by Apjjm - 01-16-2012, 01:16 AM
RE: CoolGuyZ65 TC help thread - by CoolGuyZ65 - 01-16-2012, 05:57 PM
RE: CoolGuyZ65 TC help thread - by CoolGuyZ65 - 01-17-2012, 03:22 AM
RE: CoolGuyZ65 TC help thread - by Your Computer - 01-17-2012, 04:42 AM
RE: CoolGuyZ65 TC help thread - by CoolGuyZ65 - 01-18-2012, 12:19 AM



Users browsing this thread: 1 Guest(s)