12-07-2013, 10:34 PM
I fixed almost everything on my custom story except one thing.
Here is a short description after the description I will show you my codes and some Pictures.:
------------------
Description: So you will find this secret key that will unlock this secret door. you can't miss the door but you can miss the key, if you don't pay enough attention. The door is a LEVEL door that will bring you to Libary.map. Here comes the codes:
-------------------------------
Name on Door: secret
Name on key: keycloset2 (don't ask why it's called keycloset2)
Here is the HPS from the level realfloor:
void OnStart()
{
AddUseItemCallback("", "keycloset2", "secret", "KeyOnDoor", true);
}
void KeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("secret", false, true);
PlaySoundAtEntity("", "unlock_door", "secret", 0, false);
RemoveItem("keycloset2");
}
--------------------------------
The key is working, what I mean with that is when I use the key on the door, the key will dissapear from my Inventory... And the door is still locked
And one last thing, when making maps. does every caps need to be small or? is it okay to call a map: Libary.map and the same with some of my notes is also with Capital like: Miner1
I am posting some Pictures Down below
Here is a short description after the description I will show you my codes and some Pictures.:
------------------
Description: So you will find this secret key that will unlock this secret door. you can't miss the door but you can miss the key, if you don't pay enough attention. The door is a LEVEL door that will bring you to Libary.map. Here comes the codes:
-------------------------------
Name on Door: secret
Name on key: keycloset2 (don't ask why it's called keycloset2)
Here is the HPS from the level realfloor:
void OnStart()
{
AddUseItemCallback("", "keycloset2", "secret", "KeyOnDoor", true);
}
void KeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("secret", false, true);
PlaySoundAtEntity("", "unlock_door", "secret", 0, false);
RemoveItem("keycloset2");
}
--------------------------------
The key is working, what I mean with that is when I use the key on the door, the key will dissapear from my Inventory... And the door is still locked
And one last thing, when making maps. does every caps need to be small or? is it okay to call a map: Libary.map and the same with some of my notes is also with Capital like: Miner1
I am posting some Pictures Down below