Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support


Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Scripting help
Author Message
P44RTHURN4X Offline
Junior Member

Posts: 35
Joined: Apr 2012
Reputation: 0
Post: #1
Scripting help

Hey all,

i wanna ask you, cause i cannot find it out by trying and testing..., how to do that.
There are 2 monsters, left and right, and they don't attack you (they are "friendly") and the "monster-hunt-you-music is also not running. I need it very quickly now! Please help!



GReeZe' P44
05-01-2012 04:33 PM
Find all posts by this user Quote this message in a reply
TeamSD Offline
Member

Posts: 51
Joined: Apr 2012
Reputation: 2
Post: #2
RE: Scripting help

Well, you could try this.

Put this into your map: entities/ttp/servant_grunt_nomusic

Then, click that grunt and select "Entity" and check the DisableTriggers box. Now your monster does not react to the player in anyway and the music is also not playing. You can set pathnodes to your monster normally.

05-01-2012 06:50 PM
Find all posts by this user Quote this message in a reply
P44RTHURN4X Offline
Junior Member

Posts: 35
Joined: Apr 2012
Reputation: 0
Post: #3
RE: Scripting help

I found it out much easier!:

SetEnemyDisableTriggers("enemy2_1", true);
Put this into your .hps file like this:
void OnStart()
{
SetEntityActive("enemy2_1", true);
SetEnemyDisableTriggers("enemy2_1", true);
AddEnemyPatrolNode("enemy2_1", "PathNodeArea_1", 0, "idle.anm");
}

But thanks for your help bud.
05-03-2012 03:27 PM
Find all posts by this user Quote this message in a reply
FragdaddyXXL Offline
Member

Posts: 136
Joined: Apr 2012
Reputation: 7
Post: #4
RE: Scripting help

Turn sanity drain off too, right?

Dark Seclusion Here
05-03-2012 03:38 PM
Find all posts by this user Quote this message in a reply
Elven Offline
Posting Freak

Posts: 859
Joined: Aug 2011
Reputation: 26
Post: #5
RE: Scripting help

Turning the Sanity Drain off only reduces darkness sanity reduction. Meaning that if you are in pitch dark room, your sanity will not decrease. But whenever you are watching monster, your sanity will reduce and effects will appear. Except if you make full conversion OR set sanity back to 100 in every x seconds via scripting.

Its just little bit info.

Also, you can use normal grunts as well, disable triggers as stated above and overwrite the music with other (maybe empty?) music with extreme priority.

The Interrogation
Chapter 1

My tutorials
05-04-2012 12:09 AM
Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)