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
Another crashing hps.
Adny Offline
Posting Freak

Posts: 1,766
Threads: 6
Joined: Mar 2012
Reputation: 173
#2
RE: Another crashing hps.

This:


Spoiler below!


SetSwingDoorClosed("door1", 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);
}



For some reason, you callback syntax+name is it's own function; seeing how I don't know what this function even is, I can't provide a fix beyond pointing out the mistake.

It should be more like:

Spoiler below!


NAMEOFFUNC(string &in asX, string &in asY, int alState)
{
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);
}


Hope that helped.

I rate it 3 memes.
(This post was last modified: 10-05-2012, 10:19 PM by Adny.)
10-05-2012, 10:18 PM
Find


Messages In This Thread
Another crashing hps. - by candlejack131 - 10-05-2012, 10:15 PM
RE: Another crashing hps. - by Adny - 10-05-2012, 10:18 PM
RE: Another crashing hps. - by The chaser - 10-05-2012, 10:44 PM
RE: Another crashing hps. - by candlejack131 - 10-06-2012, 03:21 AM
RE: Another crashing hps. - by candlejack131 - 10-05-2012, 11:03 PM
RE: Another crashing hps. - by Obliviator27 - 10-05-2012, 11:05 PM
RE: Another crashing hps. - by candlejack131 - 10-05-2012, 11:24 PM
RE: Another crashing hps. - by Rapture - 10-05-2012, 11:35 PM
RE: Another crashing hps. - by candlejack131 - 10-05-2012, 11:55 PM
RE: Another crashing hps. - by Statyk - 10-06-2012, 04:31 AM
RE: Another crashing hps. - by candlejack131 - 10-06-2012, 05:24 AM



Users browsing this thread: 1 Guest(s)