Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Shelf | Store

Privacy Policy


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved Can't Make Alexander Inactive
Author Message
jessehmusic Offline
Senior Member

Posts: 423
Joined: Dec 2011
Reputation: 8
Post: #1
Can't Make Alexander Inactive
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);
}

http://www.moddb.com/mods/jessehmusic - Hospital of horror , WIP
(This post was last modified: 02-28-2012 04:16 PM by jessehmusic.)
02-28-2012 12:22 AM
Visit this user's website Find all posts by this user Quote this message in a reply
LulleBulle Offline
Member

Posts: 102
Joined: Feb 2012
Reputation: 0
Post: #2
RE: Can't Make Alexander Inactive
if you want him Inactive you have to write
SetEntityActive("Ghost", false);
03-01-2012 09:30 AM
Find all posts by this user Quote this message in a reply
flamez3 Offline
Posting Freak

Posts: 1,319
Joined: Apr 2011
Reputation: 57
Post: #3
RE: Can't Make Alexander Inactive
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.

03-01-2012 09:34 AM
Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)