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
Amensia Script Error Expected '(' or ','
Unearthlybrutal Offline
Posting Freak

Posts: 775
Threads: 12
Joined: May 2011
Reputation: 26
#2
RE: Amensia Script Error Expected '(' or ','

Spoiler below!
void TimerDoneLookAt(string &in asTimer)
{
StopPlayerLookAt();
}

////////////////////////////
// Run first time starting map
void OnStart()
{
AddEntityCollideCallback("Player", "scareArea1", "func_slam", true, 1);

StartPlayerLookAt("LookArea1", 2, 2, "");


AddTimer("donelook", 2.5f, "TimerDoneLookAt");
}

void func_slam(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorClosed("Mansiondoor1", true, true);

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

PlaySoundAtEntity("", "react_scare", "Player", 0, false); PlaySoundAtEntity("", "close_door.snt", "Player", 0, false);

GiveSanityDamage(5.0f, true);



AddEntityCollideCallback("Player","ScriptArea_1","function1" true, 1);
}


////////// Callback Functions!!!

void function1(string &in asParent, string &in asChild, int alState)
{
SetPlayerSanity(true "100");
}
////////////////////////////
// Run when map is loaded
void OnEnter()
{

}

////////////////////////////
// Run when leaving map
void OnLeave()
{
SetupLoadScreen("Loading", "", 1, "Loading_Level_Picture.jpg");
}




Smile Replace the red part with: SetPlayerSanity(100);

When Life No Longer Exists
Full-conversion mod
04-13-2012, 08:20 PM
Website Find


Messages In This Thread
RE: Amensia Script Error Expected '(' or ',' - by Unearthlybrutal - 04-13-2012, 08:20 PM



Users browsing this thread: 1 Guest(s)