The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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 doens´t work...
thephoenix1860 Offline
Junior Member

Posts: 33
Threads: 4
Joined: Sep 2011
Reputation: 0
#1
Key doens´t work...

Hello,
Im new in doing Custom-Stories and could need some help, because i have a problem with my key:
in my leveleditor the key has under the right subject the name of the door.
in the hps:
void OnStart()
{
AddUseItemCallback("", "key_study_1", "mansion_1", "UsedKeyOnDoor", true);
}

void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("mansion_1", false, false);
PlaySoundAtEntity("", "unlock_key_study_1.snt", "mansion_1", 0, false);
RemoveItem("key_study_1");
AddDebugMessage("KeyOnDoor", false);
}
////////////////////////////
// Run when leaving map
void OnLeave()
{

}


but it doesn´t work and im very sorry, if it already exists a thread about it!

im happy about each comment Smile
02-14-2012, 02:06 PM
Find


Messages In This Thread
Key doens´t work... - by thephoenix1860 - 02-14-2012, 02:06 PM
RE: Key doens´t work... - by flamez3 - 02-14-2012, 03:29 PM
RE: Key doens´t work... - by onv - 02-14-2012, 03:43 PM
RE: Key doens´t work... - by thephoenix1860 - 02-14-2012, 04:24 PM
RE: Key doens´t work... - by flamez3 - 02-14-2012, 04:28 PM
RE: Key doens´t work... - by thephoenix1860 - 02-14-2012, 04:32 PM
RE: Key doens´t work... - by flamez3 - 02-14-2012, 04:38 PM
RE: Key doens´t work... - by thephoenix1860 - 02-14-2012, 04:50 PM
RE: Key doens´t work... - by flamez3 - 02-14-2012, 05:00 PM
RE: Key doens´t work... - by Your Computer - 02-14-2012, 04:55 PM
RE: Key doens´t work... - by thephoenix1860 - 02-14-2012, 05:29 PM
RE: Key doens´t work... - by Your Computer - 02-14-2012, 07:41 PM
RE: Key doens´t work... - by flamez3 - 02-15-2012, 05:37 AM
RE: Key doens´t work... - by Shives - 02-14-2012, 07:32 PM
RE: Key doens´t work... - by thephoenix1860 - 02-14-2012, 08:18 PM
RE: Key doens´t work... - by Darkaroth - 02-14-2012, 08:29 PM
RE: Key doens´t work... - by Your Computer - 02-14-2012, 08:31 PM
RE: Key doens´t work... - by thephoenix1860 - 02-14-2012, 08:37 PM
RE: Key doens´t work... - by thephoenix1860 - 02-16-2012, 04:29 PM



Users browsing this thread: 1 Guest(s)