Frictional Games Forum (read-only)

Full Version: Level Editor Issue.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
So basically my problem is the key that i made won't unlock the door its supposed to.
It just says "Cannot use item this way."


Theres my .hps file.

Key's name = key_1
Key's sub name = key1
Door's name = mansion_1

If you need anything else let me know.
If you've named it right in the level editor then it's not the level editors fault that it wont work, you need to script it in a .hps file
I scripted it in that .hps file i posted. I was watching a tutorial on how to do it and i have the script set up the way its supposed to. I asked the owner of the video for help and he told me to send him my .hps file so i did. He tryed it and it worked for him. The key unlocked the door and everything. Worked fine for him. So i know it must be something on my side, yet i don't know what it would be. the .hps file is the same name as my map name. I'm not really sure what else could cause the problem besides the .hps file being wrong but it works fine for him so that can't be the case. Any ideas?
If you can't use the item, make sure your syntax is correct. In the function called by the UseItemCallback, it has to be
void Whateveryounamedit(string &in asEntity, string &in asItem)

If there's still a problem, delete your map_cache files. They have the nasty tendency to provide bugs.