SuperSoldier333
Junior Member
Posts: 12
Threads: 2
Joined: Aug 2012
Reputation:
0
|
RE: Can't play my custom story
////////////////////////////
// Run when the map starts
void OnStart()
{
AddUseItemCallback("", "keydoor", "mansion_1", "OuvrirPorte", true);
}
void OuvrirPorte(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("mansion_1", false, true);
PlaySoundAtEntity("", "unlock_door.snt", "mansion_1", 0, false);
RemoveItem("keydoor");
}
////////////////////////////
// Run when entering map
void OnEnter()
{
}
////////////////////////////
// Run when leaving map
void OnLeave()
{
}
I checked and the names of the door and the key are correct.
|
|
08-05-2012, 07:48 PM |
|