(07-15-2012, 09:15 PM)zergling50 Wrote: What should those values be changed to?
void KeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked(asEntity, false, true);
PlaySoundAtEntity("", "unlock_door", asEntity, 0, false);
RemoveItem(asItem);
}
Notice how the variable names reflect the parameters exactly.
Also, if your MAP is named 01.map, then the HPS should be named 01.hps. If nothing from the script works after making these changes, then check if C:\Users\<username>\AppData\Local\VirtualStore contains any of your custom story files. If so, then you're bound to have consistency issues with your custom story.