Frictional Games Forum (read-only)
Can't Make Alexander Inactive - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: Can't Make Alexander Inactive (/thread-13637.html)



Can't Make Alexander Inactive - jessehmusic - 02-28-2012

Hello All amnesia fans...Well the title says it , i got it on Inactive in LVL And Got the script for the hps


void OnStart()
{
AddUseItemCallback("", "Study Key", "sutdy door", "KeyOnDoor", true);
AddEntityCollideCallback("Player", "text_1", "Text", true, 1);
AddEntityCollideCallback("Player", "GhostArea", "GhostHorror", true, 1);
}

void StopMusic(string &in asParent, string &in asChild, int alState)
{
StopMusic(1 , 0);
}

void KeyOnDoor(string &in asItem, string &in asEntity)
{
SetLevelDoorLocked("sutdy door", false);
PlaySoundAtEntity("", "unlock_door", "sutdy door", 0, false);
RemoveItem("Study Key");
}

void GhostHorror(string &in asParent, string &in asChild, int alState)

{
SetEntityActive("Ghost", true);
}
void Text(string &in asParent, string &in asChild, int alState)

{
AddTimer("timerReleasePlayer", 1, "timerReleasePlayer");
}
void timerReleasePlayer(string &in asTimer)
{
SetMessage("Messages", "what", 5);
}

void OnLeave()
{
AddEntityCollideCallback("Player", "MusicStop", "StopMusic", true, 1);
}


RE: Can't Make Alexander Inactive - LulleBulle - 03-01-2012

if you want him Inactive you have to write
SetEntityActive("Ghost", false);


RE: Can't Make Alexander Inactive - flamez3 - 03-01-2012

Did you save? And did you delete the .map_cache?
(03-01-2012, 09:30 AM)LulleBulle Wrote: if you want him Inactive you have to write
SetEntityActive("Ghost", false);
He said he did it through the level editor.