02-08-2012, 08:54 AM
It was mentioned to me I need to make variables to strings... or something, in my .hps file.. how does that work exactly, I have tried to find something about it without luck..... can anyone clarify? The .hps file looks like this:
// Run when entering map
void OnEnter()
{
AddUseItemCallback("", "Masterbedroomkey", "masterbedroomdoor", "UsedKeyOnDoor", true);
}
void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("masterbedroomdoor", false, true);
PlaySoundAtEntity("", "unlock_door", "masterbedroomdoor", 0, false);
RemoveItem("Masterbedroomkey");
}
////////////////////////////
// Run when leaving map
void OnLeave()
{
}
As you can see, no errors, but apparently still wrong since my key won't open the door it suppose to
// Run when entering map
void OnEnter()
{
AddUseItemCallback("", "Masterbedroomkey", "masterbedroomdoor", "UsedKeyOnDoor", true);
}
void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("masterbedroomdoor", false, true);
PlaySoundAtEntity("", "unlock_door", "masterbedroomdoor", 0, false);
RemoveItem("Masterbedroomkey");
}
////////////////////////////
// Run when leaving map
void OnLeave()
{
}
As you can see, no errors, but apparently still wrong since my key won't open the door it suppose to