Making a amnesia map
The forums have been archived. Please read this thread for more information.
-
-
Like i said. its the same.
You did something wrong in that script becauz it dont work still. check it again
LOOK
AddUseItemCallback("","Unknown key_1","mansion_1","OpenDoor", true);
}
void OpenDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("mansion_1", false, true);
PlaySoundAtEntity("", "unlock_door", "mansion_1", 0, false);
RemoveItem("Unknown Key_1");
} -
Look mate, I have fixed this issue. It works on mine, and it should work with yours. Before you start get annoyed with me why don't you consider the fact that you don't know what you are doing...
This is NOT the same script in custom story you sent me. I changed the callback and the function name, as well as the name of the key.
// Starter's Script File!
//===========================================
//===========================================
// This runs when the map first starts
void OnStart()
{
AddUseItemCallback("","Unknown key_1","mansion_1","OpenDoor", true);
}
void OpenDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("mansion_1", false, true);
PlaySoundAtEntity("", "unlock_door", "mansion_1", 0, false);
RemoveItem("Unknown key_1");
}
//===========================================
// This runs when the player enters the map
void OnEnter()
{
}
//===========================================
// This runs when the player leaves the map
void OnLeave()
{
}
I did not do anything wrong in that script. Have you torrented amnesia? -
what do that mean. i run it over steam
-
THANK GOD IT WORKS NOW
It must have been something wrong in the level editor becauz the subname was called UnknownKey so i changed it Unknownkey
but i dont know lol
i changed everything to Unknown key_1
and it works
BRB WORKING ON MAP! Thanks for the help flamez. i put your name in the credits -
Told you -__-
-
no it was something in the level editor.
-
Explain please.
-
Flamez3 wrote:
Explain please.
he just blames the level editor because he doesnt want to say that you were right xD
-
I dont understand how it could be a level editor problem tbh. EVEN if it was a level editor problem, your script wasn't right and wouldn't work anyway
-
lol you said it was the same on yours and it worked but not on mine. so i actully think i am right
In the level editor it was called UnknownKey so i did rename it and it worked -
...
Flamez3 wrote:
rename everything
Flamez3 wrote:
Did you rename everything
Flamez3 wrote:
did you double check the names
Flamez3 wrote:
EVERYTHING is case sensitive. In this case; you had "Unknown Key_1" in your script, and in level editor you had "Unknown key_1".
It's obvious you didn't listen to me. I changed the script to work. I only said it worked on mine when I altered your script. Pay more attention when people are helping you. -
-
lol i did. and saying that doesnt mean where to look. i got alot of names
-
What are you talking about?
-
how i lock this topic.. ! plz forget it its fixed and no more worries
-
Closed... pay more attention next time please
-
Share
- Facebook 0
- Twitter 0
- Google Plus 0
- Reddit 0
-
Users Online 1
1 Guest