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
Some wierd bug
Ardoetia Offline
Junior Member

Posts: 46
Threads: 4
Joined: Feb 2012
Reputation: 0
#3
RE: Some wierd bug

(02-22-2012, 06:15 PM)Unearthlybrutal Wrote: Timer's syntax is (string &in asTimer),
and not (string &in asParent, string &in asChild, int alState).
What?


void StopPlayerLook(string &in asTimer)
{
StopPlayerLookAt();
}

void ResetPlayer(string &in asTimer)
{
SetPlayerActive(true);
}



void girlstopcry(string &in asTimer)
{
StopSound(asTimer, 1.0);
}

void girlcry_1(string &in asTimer)
{
PlaySoundAtEntity("", "12_girl_cry.snt", "lyd_2", 0, false);
}


void girlcry_2(string &in asTimer)
{
PlaySoundAtEntity("", "12_girl_cry.snt", "lyd_3", 0, false);
}


void girlcry_3(string &in asTimer)
{
PlaySoundAtEntity("", "12_girl_cry.snt", "lyd_4", 0, false);
}


These are the only timers?




void girlcry(string &in asParent, string &in asChild, int alState)
{
AddTimer("", 0, "girlcry_1");
AddTimer("", 3, "girlstopcry");
AddTimer("", 1, "ResetPlayer");
AddTimer("", 1.5, "SetPlayerActive");
StartPlayerLookAt("lyd_2", 2, 2, "");
SetPlayerActive(false);
}

void girlcry1(string &in asParent, string &in asChild, int alState)
{
AddTimer("", 0, "girlcry_2");
AddTimer("", 3, "girlstopcry");
SetPlayerActive(false);
AddTimer("", 1, "ResetPlayer");
AddTimer("", 1.5, "SetPlayerActive");
StartPlayerLookAt("lyd_3", 2, 2, "");
}

void girlcry2(string &in asParent, string &in asChild, int alState)
{
AddTimer("", 0, "girlcry_3");
AddTimer("", 3, "girlstopcry");
SetPlayerActive(false);
AddTimer("", 1, "ResetPlayer");
AddTimer("", 1.5, "SetPlayerActive");
StartPlayerLookAt("lyd_4", 2, 2, "");
}

Points to


AddEntityCollideCallback("Player", "lyd_1", "girlcry", true, 1);
AddEntityCollideCallback("Player", "lyd_2", "girlcry1", true, 1);
AddEntityCollideCallback("Player", "lyd_3", "girlcry2", true, 1);



02-22-2012, 06:40 PM
Find


Messages In This Thread
Some wierd bug - by Ardoetia - 02-22-2012, 05:39 PM
RE: Some wierd bug - by Unearthlybrutal - 02-22-2012, 06:15 PM
RE: Some wierd bug - by Ardoetia - 02-22-2012, 06:40 PM
RE: Some wierd bug - by Your Computer - 02-22-2012, 07:12 PM
RE: Some wierd bug - by Ardoetia - 02-22-2012, 07:18 PM
RE: Some wierd bug - by Ardoetia - 02-23-2012, 01:29 AM
RE: Some wierd bug - by Your Computer - 02-23-2012, 01:45 AM
RE: Some wierd bug - by Ardoetia - 02-23-2012, 03:28 AM



Users browsing this thread: 1 Guest(s)