Amnesia script help!
So Im making an amnesia custom story and at one point you walk down a staircase and a monster spawn in front of you. What you dont know is that its an hallucination. I want to spawn a wall behind you that prevents you from escaping when the monster spawns and then one more script that removes the wall when the hallucination disappears.
This is my current monster spawn script that Im using to spawn the hallucination. This script works what i want help with is spawning the wall! :
////////////////////////////
// Run first time starting map
void OnStart()
{
AddUseItemCallback("", "Awesome_key", "Awesome_door", "ABC", true);
AddEntityCollideCallback("Player", "PlayerCollide", "MonsterFunction", true, 1);
AddUseItemCallback("", "secret_key", "secret_door", "SECRET", true);
}
void ABC(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked( "Awesome_door", false, true);
PlaySoundAtEntity("", "unlock_door", "Awesome_door", 0, false);
RemoveItem("Awesome_key");
}
void SECRET(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked( "secret_door", false, true);
PlaySoundAtEntity("", "unlock_door", "secret_door", 0, false);
RemoveItem("secret_key");
[b][b]}
[b]void MonsterFunction(string &in asParent, string &in asChild, int alState)
{[/b][/b]
SetEntityActive("servant_grunt_1", true);
}[/b]
(This post was last modified: 03-21-2014, 07:22 PM by theodorg.)
|