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


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Amnesia script help
theodorg Offline
Junior Member

Posts: 44
Threads: 11
Joined: Aug 2013
Reputation: 0
#15
RE: Amnesia script help

(08-26-2014, 06:45 PM)Dr.Badcat Wrote: Found the problem

PHP Code: (Select All)
void falldown1(string &in asParentstring &in asChildint alState)
{
SetEntityActive("rock_med02_push_1"true);
SetEntityActive("rock_med02_push_2"true);
SetEntityActive("rock_med02_push_3"true);
SetEntityActive("rock_med02_push_4"true);
SetEntityActive("rock_med02_push_5"true);
SetEntityActive("rock_med02_push_6"true);
SetEntityActive("rock_med02_push_7"true);
SetEntityActive("rock_med02_push_8"true);
 
PlaySoundAtEntity"falldown""scare_falldown.snt","rock_med02_push_8",  0,  false);


There shouldn't be a void near PlaySound and why was there a string& near every name? remove that and just do "" instead of string&""

Thanks but it still dosent work:
////////////////////////////
// Run first time starting map
void OnStart()
{
AddUseItemCallback("", "Awesome_key", "Awesome_door", "ABC", true);
AddEntityCollideCallback("Player", "korridor", "bana", true, 1);
AddUseItemCallback("", "secret_key", "secret_door", "SECRET", true);
AddEntityCollideCallback("Player", "falldown", "falldown1", true, 1);
PlayMusic("creepy.ogg", false, 0.6, 5, 0.5, true);
AddEntityCollideCallback("Player", "checkpoint_1", "Restart", true, 1);
}

void Restart(string &in asParent, string &in asChild, int alState)
{
CheckPoint ("FirstCheckpoint", "checkpoint_1_spawn", "Happening", "DeathCategory", "Deathtext");
}

void falldown1(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("rock_med02_push_1", true);
SetEntityActive("rock_med02_push_2", true);
SetEntityActive("rock_med02_push_3", true);
SetEntityActive("rock_med02_push_4", true);
SetEntityActive("rock_med02_push_5", true);
SetEntityActive("rock_med02_push_6", true);
SetEntityActive("rock_med02_push_7", true);
SetEntityActive("rock_med02_push_8", true);
PlaySoundAtEntity("falldown", "scare_falldown.snt", "rock_med02_push_8", float 0, bool false);
same error
08-26-2014, 06:53 PM
Find


Messages In This Thread
Amnesia script help - by theodorg - 08-25-2014, 08:52 PM
RE: Amnesia script help - by Slanderous - 08-25-2014, 09:45 PM
RE: Amnesia script help - by PutraenusAlivius - 08-26-2014, 02:42 AM
RE: Amnesia script help - by Mudbill - 08-26-2014, 09:40 AM
RE: Amnesia script help - by FlawlessHappiness - 08-26-2014, 10:51 AM
RE: Amnesia script help - by theodorg - 08-26-2014, 03:01 PM
RE: Amnesia script help - by theodorg - 08-26-2014, 04:21 PM
RE: Amnesia script help - by Mudbill - 08-26-2014, 04:54 PM
RE: Amnesia script help - by theodorg - 08-26-2014, 06:01 PM
RE: Amnesia script help - by FlawlessHappiness - 08-26-2014, 06:16 PM
RE: Amnesia script help - by theodorg - 08-26-2014, 06:17 PM
RE: Amnesia script help - by FlawlessHappiness - 08-26-2014, 06:37 PM
RE: Amnesia script help - by theodorg - 08-26-2014, 06:43 PM
RE: Amnesia script help - by Radical Batz - 08-26-2014, 06:45 PM
RE: Amnesia script help - by theodorg - 08-26-2014, 06:53 PM
RE: Amnesia script help - by Radical Batz - 08-26-2014, 06:58 PM
RE: Amnesia script help - by theodorg - 08-26-2014, 07:00 PM
RE: Amnesia script help - by Radical Batz - 08-26-2014, 07:02 PM
RE: Amnesia script help - by theodorg - 08-26-2014, 07:05 PM
RE: Amnesia script help - by Radical Batz - 08-26-2014, 07:05 PM



Users browsing this thread: 1 Guest(s)