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
Scripting help
P44RTHURN4X Offline
Junior Member

Posts: 35
Threads: 16
Joined: Apr 2012
Reputation: 0
#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
TeamSD Offline
Member

Posts: 51
Threads: 3
Joined: Apr 2012
Reputation: 2
#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
P44RTHURN4X Offline
Junior Member

Posts: 35
Threads: 16
Joined: Apr 2012
Reputation: 0
#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
FragdaddyXXL Offline
Member

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

Turn sanity drain off too, right?

Dark Seclusion Here
05-03-2012, 03:38 PM
Find
Elven Offline
Posting Freak

Posts: 862
Threads: 37
Joined: Aug 2011
Reputation: 26
#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




Users browsing this thread: 1 Guest(s)