10-01-2011, 04:01 AM
Hi guys for some reason my custom story map i am testing out doesnt seem to work i followed 3 youtube guiders to script it so i can run it on game but non of them work. Now i am geting pretty much fustrated. This is what i did for my Hps file
////////////////////////////
// Run first time starting map
void OnStart()
{
AddUseItemCallback("", "Small Storage room key", "Small storage room", "UsedKeyOnDoor", true);
}
void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("Small storage room", false, true);
PlaySoundAtEntity("", "unlock_door", "Small storage room", 0, false);
RemoveItem("Small storage room key")
}
////////////////////////////
// Run when entering map
void OnEnter()
{
}
////////////////////////////
// Run when leaving map
void OnLeave()
{
}
and for my custom_story_settings_ cfg i did
<Main
Imgfile = "Amnesia-Shambles"
Name = "LivingNightmare"
Auther = "Electrofuze"
Mapsfolder = "Maps/Ch01/"
Startmap = "00_TheHowling.map
Startpos = "PlayerStartArea_2"
/>
oh and for the locations where i place the files can you also add that xD please and thank you
////////////////////////////
// Run first time starting map
void OnStart()
{
AddUseItemCallback("", "Small Storage room key", "Small storage room", "UsedKeyOnDoor", true);
}
void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("Small storage room", false, true);
PlaySoundAtEntity("", "unlock_door", "Small storage room", 0, false);
RemoveItem("Small storage room key")
}
////////////////////////////
// Run when entering map
void OnEnter()
{
}
////////////////////////////
// Run when leaving map
void OnLeave()
{
}
and for my custom_story_settings_ cfg i did
<Main
Imgfile = "Amnesia-Shambles"
Name = "LivingNightmare"
Auther = "Electrofuze"
Mapsfolder = "Maps/Ch01/"
Startmap = "00_TheHowling.map
Startpos = "PlayerStartArea_2"
/>
oh and for the locations where i place the files can you also add that xD please and thank you