The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
#1
Looking around upon start

So I forgot how to make the player look around properly, it would seem. What I want to do, is have the player look at a few objects as he spawns. I tried to make him collide with his own spawn area, as you see, but it didn't work. I'm not sure what to do p: It's 2.30am here so I'll be posting this and checking for replies in the morning. Thanks in advance.
PHP Code: (Select All)
void OnStart()
{
SetPlayerLampOil(0.35f);
SetPlayerActive(false);
SetPlayerLookSpeedMul(0.2f);
FadeRadialBlurTo(0.5f3.0f);
SetSanityDrainDisabled(true);
SetInventoryDisabled(false);
BlockDefaultHints();
FadeIn(3);
FadePlayerFOVMulTo(11);;
SetPlayerRunSpeedMul(0);
MovePlayerHeadPos(0, -1.5f0100.5f);
SetSanityDrainDisabled(true);
AddEntityCollideCallback("Player""PlayerStartArea_1""lookingaround1"true1); 
}
void lookingaround1(string &in asTimer)
{
StartPlayerLookAt("invisible_box_mass_3"5.0f5.0f"");
AddTimer(""3.0f"StopLook");
}
void StopLook(string &in asTimer
{
  
StopPlayerLookAt();
}
void BlockDefaultHints()
{
    
BlockHint("DarknessDecrease");
    
BlockHint("PickLantern");
    
BlockHint("PickTinderbox");
    
BlockHint("SanityHit");
    
BlockHint("SanityLow");
}

void OnEnter()
{



[Image: theshanusyoutube.jpg]
(This post was last modified: 08-10-2012, 09:22 AM by The Shanus.)
08-10-2012, 12:29 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



Users browsing this thread: 1 Guest(s)