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
#7
RE: SanityBoost script is giving me an error?

(10-20-2011, 09:04 PM)Your Computer Wrote:
(10-20-2011, 09:01 PM)MissMarilynn Wrote: And how do I fix the sanity problem then? Can you give me a scripting example?

In other words, replace this:

PHP Code: (Select All)
void IsItLockedComplete(string &in entityint alState)
{
CompleteQuest("open_door_quest""open_door");
GiveSanityBoostSmall();


With:

PHP Code: (Select All)
void IsItLockedComplete(string &in entity)
{
CompleteQuest("open_door_quest""open_door");
GiveSanityBoostSmall();

Great! and how can I get this to work as well:

void open(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("officedoor", false, true);
PlaySoundAtEntity("", "unlock_door", "door1", 0, false);
RemoveItem("officekey");
GiveSanityBoostSmall();
}

I want a sanity boost when I use the key on the office door?
10-20-2011, 09:09 PM
Find


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



Users browsing this thread: 1 Guest(s)