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
Looking around upon start
The Shanus Offline
Member

Posts: 134
Threads: 15
Joined: Jun 2012
Reputation: 3
#7
Looking around, player seems to get bored of it.

Hey guys, so I've got my guy looking around, but for some reason, after looking at his right arm, he gets lazy, and decides to just stay looking at it, even though I see nothing wrong with the functions. He doesn't go on to look at his bloody chest or the scientist, and I'm not sure why.

Here's the relevant script:
PHP Code: (Select All)
AddEntityCollideCallback("Player""corpse_male_1""lookingaround1"true1); 
AddEntityCollideCallback("Player""wakeuparea""wakeup"true1); 
}

void lookingaround1(string &in asParentstring &in asChildint alState
{
StartPlayerLookAt("invisible_box_mass_3"4.0f4.0f"");
AddTimer(""7.0f"lookatleftarm");
}

void wakeup(string &in asParentstring &in asChildint alState
{
FadeOut(0.0f);
AddTimer(""3.0f"wakeup2");
}

void wakeup2(string &in asTimer)
{
FadeIn(4.0f);
}

void lookatleftarm(string &in asTimer)
{
StartPlayerLookAt("invisible_box_mass_4"3.0f3.0f"");
AddTimer(""2.0f"lookatrightarm");
}

void lookatrightarm(string &in asTimer)
{
StartPlayerLookAt("invisible_box_mass_5"3.0f3.0f"");
AddTimer(""2.0f"lookatbloodychest");
}

void lookatbloodychest(string &in asTimer)
{
StartPlayerLookAt("blood_pool_static_2"3.0f3.0f"");
AddTimer(""2.0f"lookatscientist");
}

void lookatscientist(string &in asTimer)
{
StartPlayerLookAt("plane_black_plane_black_1"1.0f2.0f"");
AddTimer(""30.0f"StopLook");
}

void StopLook(string &in asTimer
{
  
StopPlayerLookAt();


[Image: theshanusyoutube.jpg]
08-10-2012, 11:32 AM
Find


Messages In This Thread
Looking around upon start - by The Shanus - 08-10-2012, 12:29 AM
RE: Looking around upon start - by Statyk - 08-10-2012, 01:03 AM
RE: Looking around upon start - by Theforgot3n1 - 08-10-2012, 05:04 AM
RE: Looking around upon start - by The Shanus - 08-10-2012, 08:33 AM
RE: Looking around upon start - by Theforgot3n1 - 08-10-2012, 08:59 AM
RE: Looking around upon start - by The Shanus - 08-10-2012, 09:10 AM
Looking around, player seems to get bored of it. - by The Shanus - 08-10-2012, 11:32 AM



Users browsing this thread: 1 Guest(s)