rakakak11
Junior Member
Posts: 20
Threads: 3
Joined: Jul 2012
Reputation:
0
|
RE: How i can reload script area when i die ? And how to create loopable sounds ?
thanks for all replies i try everything now...
EDIT:
WOW thanks! drunkmonk scripts helped me....
this is how i has it before...: Quote:void Zombik(string &in asParent, string &in asChild, int alState)
{
CheckPoint ("", "PlayerStartArea_1", "Obnovenie", "Checkpoints", "Checkpoint3");
SetEntityActive("grunt", true);
ShowEnemyPlayerPosition("grunt");
SetPropHealth("monsterdoor", 5.0f);
AddTimer("monstertimer", 1, "monstertimer");
StartPlayerLookAt("grunt", 15, 15, "");
GiveSanityDamage(5.0f, true);
PlayGuiSound("notice_long01.ogg", 0.5f);
PlayMusic("29_amb_end_intense.ogg", true, 1, 1, 10, true);
}
void Obnovenie(string &in asName, int alCount)
{
ResetProp("ScriptArea_1");
ResetProp("ScriptArea_2");
ResetProp("ScriptArea_3");
ResetProp("grunt");
ResetProp("brute");
}
And this is Fixed version :
Quote:void Zombik(string &in asParent, string &in asChild, int alState)
{
CheckPoint ("", "PlayerStartArea_1", "Obnovenie", "Checkpoints", "Checkpoint3");
SetEntityActive("grunt", true);
ShowEnemyPlayerPosition("grunt");
SetPropHealth("monsterdoor", 5.0f);
AddTimer("monstertimer", 1, "monstertimer");
StartPlayerLookAt("grunt", 15, 15, "");
GiveSanityDamage(5.0f, true);
PlayGuiSound("notice_long01.ogg", 0.5f);
PlayMusic("29_amb_end_intense.ogg", true, 1, 1, 10, true);
}
void Obnovenie(string &in asName, int alCount)
{
AddEntityCollideCallback("Player", "ScriptArea_1", "Zombik", true, 1);
AddEntityCollideCallback("Player", "ScriptArea_2", "Sekac", true, 1);
AddEntityCollideCallback("Player", "ScriptArea_3", "Zombici", true, 1);
AddEntityCollideCallback("Player", "Smrt", "Spadnutie", true, 1);
ResetProp("ScriptArea_1");
ResetProp("ScriptArea_2");
ResetProp("ScriptArea_3");
ResetProp("grunt");
ResetProp("brute");
}
So i did everything right (probably) like mackiiboy says, but you forgot that i have to add collidecallback things too....
And too i dont need to reset monsters..they resets automaticaly with my script
Now i go try the loopable sounds...really thanks all for help
(This post was last modified: 07-31-2012, 10:17 PM by rakakak11.)
|
|