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

(10-20-2011, 09:17 PM)Your Computer Wrote:
(10-20-2011, 09:09 PM)MissMarilynn Wrote: 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?

PHP Code: (Select All)
AddUseItemCallback("open_office_door""officekey""officedoor""open"false); 
Now my scripting isn't working for the monster being set active by picking up a crowbar. I want him to head to the player right away. My scripting is:

SetEntityPlayerInteractCallback("crowbar_1", "MonsterSpawn", false);



void MonsterSpawn(string& asName, string& asCallback)
{
PlaySoundAtEntity("", "react_breath_slow.snt", "Player", 0, false);
PlaySoundAtEntity("", "react_scare", "Player", 0, false);
ShowEnemyPlayerPosition("crowbarscare");
SetEntityActive("crowbarscare", true);
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_1", 4, "");
(and then lots more pathnodes)
}

Crowbarscare is the monster.
10-20-2011, 10:21 PM
Find


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



Users browsing this thread: 5 Guest(s)