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
Need some help with scripting... new to AMNESIA'S scripting...
Adny Offline
Posting Freak

Posts: 1,766
Threads: 6
Joined: Mar 2012
Reputation: 173
#6
RE: Need some help with scripting... new to AMNESIA'S scripting...

My apologies; I don't usually let stuff like that slip through Tongue


The 35 refers to the line and the 44 refers to the character. If you looked at the script, that would be the very last line; that means one of the lines wasn't written out correctly. I looked under "func_slam", and there are 2 problems:

The first PlaySoundAtEntity was missing a ");" at the very end, and the second PlaySoundAtEntity was actually spelled as "PlaySoundEntity". Also, the GiveSanityDamage is only supposed to have 1 float (decimal) value, not 2. Here's the revised version of "func_slam":

void func_slam(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorClosed("slamdoor1", true, true);
PlaySoundAtEntity("", "react_breath_slow.snt", "Player", 0, false):
PlaySoundAtEntity("", "react_scare", "Player", 0, false);
GiveSanityDamage(5.0f, true);
}

You can copy/paste in the script (without any of the arguments filled in) from here:

http://wiki.frictionalgames.com/hpl2/amn..._functions

I rate it 3 memes.
07-29-2012, 08:36 AM
Find


Messages In This Thread
RE: Need some help with scripting... new to AMNESIA'S scripting... - by Adny - 07-29-2012, 08:36 AM



Users browsing this thread: 1 Guest(s)