Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
HELP ME! ERROR IN AMNESIA!
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#2
RE: HELP ME! ERROR IN AMNESIA!


//===========================================
// Starter's Script File!
//===========================================

//===========================================
// This runs when the map first starts
void OnStart()
{
AddUseItemCallback("", "key_1", "door_1", "UsedKeyOnDoor", true);
SetEntityPlayerInteractCallback("door_2", "doorexplode", true);
}

void UsedKeyOnDoor(string &in item, string &in door)
{
SetSwingDoorLocked("door_1", false, true);
PlaySoundAtEntity("", "unlock_door", "door_1", 0, false);
RemoveItem("key_1");
}


void func_slam(string &in asParent, string &in asChild, int alState)
{
SetPropHealth("door_2", 0.0f);


PlaySoundAtEntity("", "react_breath_slow.snt", "Player", 0, false);


PlaySoundAtEntity("", "react_scare", "Player", 0, false);


PlaySoundAtEntity("", "explosion_rock_large.snt", "Player", 0, false);


GiveSanityDamage(5.0f, true);
}

Use this. Don't put callbacks anywhere other than

void OnStart()
{

}


03-29-2012, 02:18 PM
Find


Messages In This Thread
HELP ME! ERROR IN AMNESIA! - by Wapez - 03-29-2012, 01:53 PM
RE: HELP ME! ERROR IN AMNESIA! - by flamez3 - 03-29-2012, 02:18 PM



Users browsing this thread: 1 Guest(s)