you could try this:
I have two possible solutions, if the first doesn't work, try the other
1. so you want it so that when you use the key on the level door, it unlocks. Sorry if someone else has posted this but couldn't you just do
void OnStart()
{
AddUseItemCallback("key" , "levelDoor" , "StartCredits" , true);
}
void StartCredits(asItem , asEntity)
{
StartCredits("" , "" , "");
}
most of the function names are wrong, because i cant remember them off the top of my head.
Im guessing that you have already tried the above, and also i think you said that you wanted the credits to start when you click on the door. so try this:
2.
create an area just in front of the door, add a use item callback so when you use the key on the Door, the callback calls. - set boolautodestroy true
then for the callback make it so that when you use the key on the door, a local variable is set to 1
finally, in your level editor, set the door locked, and under player interact calbacks, add a callback called eg: StartCredits
then in the editor add the code:
again not all te code is perfect, so if it says fatal error(which it will do in that state) just look through the code, try to solve it, hope this helps
Edit: I suppose you wouldn't even need to make an area in front of the door - just change "mydoorarea" to "mydoor" in the useitemcallback
just make sure you dont actually unlock the level door