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
How i can reload script area when i die ? And how to create loopable sounds ?
rakakak11 Offline
Junior Member

Posts: 20
Threads: 3
Joined: Jul 2012
Reputation: 0
#5
RE: How i can reload script area when i die ? And how to create loopable sounds ?

thanks for all replies Big Grin 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 Smile


Now i go try the loopable sounds...really thanks all for help Big Grin
(This post was last modified: 07-31-2012, 10:17 PM by rakakak11.)
07-31-2012, 09:52 PM
Find


Messages In This Thread
RE: How i can reload script area when i die ? And how to create loopable sounds ? - by rakakak11 - 07-31-2012, 09:52 PM



Users browsing this thread: 1 Guest(s)