theodorg
Junior Member
Posts: 44
Threads: 11
Joined: Aug 2013
Reputation:
0
|
Amnesia script help!
Hello im trying to make an amnesia custom story scare by spawning the monster when the player touches an area. Something is wrong with the script i named MonsterFunction. Pls help!
My script:
////////////////////////////
// Run first time starting map
void OnStart()
{
AddUseItemCallback("", "Awesome_key", "Awesome_door", "ABC", true);
}
{
AddEntityCollideCallback("Player", "PlayerCollide", "MonsterFunction", true, 1);
}
void ABC(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked( "Awesome_door", false, true);
PlaySoundAtEntity("", "unlock_door", "Awesome_door", 0, false);
RemoveItem("Awesome_key");
}
void MonsterFunction(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("servant_grunt_1", true);
}
|
|
08-23-2013, 03:49 PM |
|