P44RTHURN4X
Junior Member
Posts: 35
Threads: 16
Joined: Apr 2012
Reputation:
0
|
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 |
|
TeamSD
Member
Posts: 51
Threads: 3
Joined: Apr 2012
Reputation:
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 |
|
P44RTHURN4X
Junior Member
Posts: 35
Threads: 16
Joined: Apr 2012
Reputation:
0
|
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 |
|
FragdaddyXXL
Member
Posts: 136
Threads: 20
Joined: Apr 2012
Reputation:
7
|
RE: Scripting help
Turn sanity drain off too, right?
|
|
05-03-2012, 03:38 PM |
|
Elven
Posting Freak
Posts: 862
Threads: 37
Joined: Aug 2011
Reputation:
26
|
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.
|
|
05-04-2012, 12:09 AM |
|