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
SanityBoost script is giving me an error?
MissMarilynn Offline
Member

Posts: 77
Threads: 23
Joined: Oct 2011
Reputation: 1
#3
RE: SanityBoost script is giving me an error?

(10-20-2011, 08:06 PM)Your Computer Wrote: GiveSanityBoost() doesn't take any parameters. If you want to give the player a small sanity boost while having the screen effect, use GiveSanityBoostSmall().
I put it in as:


SetEntityPlayerInteractCallback("office_key", "IsItLockedComplete", true);

void IsItLockedComplete(string &in entity, int alState)
{
CompleteQuest("open_door_quest", "open_door");
GiveSanityBoostSmall();
}

and it isn't completing the quest OR giving me a purple mist screen. What could be the issue?

Also I'm getting an error for the door bang scripting you help me with the other day. I used:

AddEntityCollideCallback("Player", "bangdoorarea", "ScaryDoor", false);


void ScaryDoor(string &in asParent, string &in asChild, int alState)
{
AddPropImpulse("bangdoor", -2, 0, 0, "World");
PlaySoundAtEntity("pound", "hit_wood", "", 0, false);
PlaySoundAtEntity("enemy", "L02_attack", "bangdoor", 0, false);
CreateParticleSystemAtEntity("ParticleSystem_9", "ps_hit_wood", "bangdoor", false);
}

10-20-2011, 08:42 PM
Find


Messages In This Thread
RE: SanityBoost script is giving me an error? - by MissMarilynn - 10-20-2011, 08:42 PM



Users browsing this thread: 1 Guest(s)