The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
Script Help Sounds and monster
Knusper. Offline
Member

Posts: 58
Threads: 7
Joined: Feb 2013
Reputation: 2
#1
Sounds and monster

Hey there,

I need help with some sounds and a monster.
Sounds:

On two parts of my map I need to play a sound.
First time:
void Break(string &in asParent, string &in asChild, int alState)
{
FadeInSound("break_wood_metal2.snt", 0, true);
GiveSanityDamage(5.0f, true);
SetEntityActive("enemy", true);
SetEntityActive("prison_section_3", false);
SetEntityActive("prison_section_5", true);
AddEnemyPatrolNode("enemy", "PathNodeArea_100", 0.001, "Idle");
AddEnemyPatrolNode("enemy", "PathNodeArea_101", 0.001, "Idle");
AddEnemyPatrolNode("enemy", "PathNodeArea_102", 0.001, "Idle");
AddEnemyPatrolNode("enemy", "PathNodeArea_103", 2, "Idle");
AddEnemyPatrolNode("enemy", "PathNodeArea_104", 0.001, "Idle");
AddEnemyPatrolNode("enemy", "PathNodeArea_105", 0.001, "Idle");
AddEnemyPatrolNode("enemy", "PathNodeArea_106", 0.001, "Idle");
}

I dont know if there I must write something else and not fade in...
Ingame no sound is coming.
And here is the problem with the enemy:
It becomes active, but it dont follows the path nodes.

Same prob. with the sound here:

void killall(string &in asParent, string &in asChild, int alState)
{
GiveSanityDamage(5.0f, true);
FadeInSound("20_event_darkness.snt", 0, true);
}

I think fade in sound is wrong, but i dont know what to do.

Thx for reading

No one knows, how "I" goes.
(This post was last modified: 03-14-2013, 08:49 PM by Knusper..)
03-14-2013, 08:49 PM
Find


Messages In This Thread
Sounds and monster - by Knusper. - 03-14-2013, 08:49 PM
RE: Sounds and monster - by tonitoni1998 - 03-14-2013, 09:22 PM
RE: Sounds and monster - by Knusper. - 03-14-2013, 09:45 PM
RE: Sounds and monster - by NaxEla - 03-14-2013, 10:10 PM
RE: Sounds and monster - by Knusper. - 03-14-2013, 10:24 PM
RE: Sounds and monster - by ingedoom - 03-15-2013, 02:38 PM
RE: Sounds and monster - by Knusper. - 03-15-2013, 02:51 PM
RE: Sounds and monster - by Knusper. - 03-19-2013, 05:03 PM
RE: Sounds and monster - by ingedoom - 03-20-2013, 12:37 AM
RE: Sounds and monster - by Knusper. - 03-20-2013, 12:45 PM
RE: Sounds and monster - by PutraenusAlivius - 03-20-2013, 01:21 PM
RE: Sounds and monster - by Knusper. - 03-20-2013, 03:13 PM



Users browsing this thread: 1 Guest(s)