RE: Brute music to stop
Ok that will probably work but I want a custom sound playing and I dont know how to make one. I transferred the MP3 sound to OGG format and made an SNT file for it.
<SOUNDENTITY>
<SOUNDS>
<Main>
<Sound File="Music_custom_01.Ogg" />
</Main>
</SOUNDS>
<PROPERTIES Volume="1" MinDistance="0.1" MaxDistance="50" Random="1" Interval="0" FadeEnd="False" FadeStart="False" Stream="False" Loop="False" Use3D="True" Blockable="False" BlockVolumeMul="0.5" Priority="0" />
</SOUNDENTITY>
Then the script for the part when it plays.
void Onstart()
{
ya da da... (other collide callbacks)
AddEntityCollideCallback("cellar_grunt", "Music_stop", "no_more_FAG", true, 1);
AddEntityCollideCallback("cellar_grunt", "grunt_disappear_ready", "no_more_FAG_ready", true, 1);
}
void no_more_FAG_ready(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("Music_stop", true);
}
void no_more_FAG(string &in asParent, string &in asChild, int alState)
{
StopSound("Music_custom_01.OGG", 1);
}
void rawr_sound(string &in asParent, string &in asChild, int alState)
{
PlayMusic("Music_custom_01.ogg", true, 1, 1, 0, true);
}_________________________________________________________
I dont know if this affects it
void rawr(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("cellar_grunt", true);
AddEnemyPatrolNode("cellar_grunt", "PathNodeArea_1", 0.1, "");
AddEnemyPatrolNode("cellar_grunt", "PathNodeArea_2", 0.1, "");
AddEnemyPatrolNode("cellar_grunt", "PathNodeArea_3", 0.1, "");
AddEnemyPatrolNode("cellar_grunt", "PathNodeArea_4", 0.1, "");
AddEnemyPatrolNode("cellar_grunt", "PathNodeArea_5", 0.1, "");
AddEnemyPatrolNode("cellar_grunt", "PathNodeArea_6", 0.1, "");
AddEnemyPatrolNode("cellar_grunt", "PathNodeArea_7", 0.1, "");
AddEnemyPatrolNode("cellar_grunt", "PathNodeArea_8", 0.1, "");
AddEnemyPatrolNode("cellar_grunt", "PathNodeArea_9", 0.1, "");
AddEnemyPatrolNode("cellar_grunt", "PathNodeArea_10", 0.1, "");
AddEnemyPatrolNode("cellar_grunt", "PathNodeArea_11", 0.1, "");
AddEnemyPatrolNode("cellar_grunt", "PathNodeArea_12", 0.1, "");
AddEnemyPatrolNode("cellar_grunt", "PathNodeArea_13", 0.1, "");
AddEnemyPatrolNode("cellar_grunt", "PathNodeArea_14", 0.1, "");
AddEnemyPatrolNode("cellar_grunt", "PathNodeArea_15", 0.1, "");
AddEnemyPatrolNode("cellar_grunt", "PathNodeArea_16", 0.1, "");
AddEnemyPatrolNode("cellar_grunt", "PathNodeArea_17", 0.1, "");
AddEnemyPatrolNode("cellar_grunt", "PathNodeArea_18", 0.1, "");
AddEnemyPatrolNode("cellar_grunt", "PathNodeArea_19", 0.1, "");
AddEnemyPatrolNode("cellar_grunt", "PathNodeArea_20", 0.1, "");
AddEnemyPatrolNode("cellar_grunt", "PathNodeArea_21", 0.1, "");
AddEnemyPatrolNode("cellar_grunt", "PathNodeArea_22", 0.1, "");
AddEnemyPatrolNode("cellar_grunt", "PathNodeArea_23", 0.1, "");
SetEntityActive("NO", true);
}
____________________________________________________________
There... is something wrong
|