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
#6
RE: Looking around upon start

(08-10-2012, 08:59 AM)Theforgot3n1 Wrote:
(08-10-2012, 08:33 AM)The Shanus Wrote:
(08-10-2012, 05:04 AM)Theforgot3n1 Wrote:
(08-10-2012, 01:03 AM)Statyk Wrote: The syntax is incorrect.

void lookingaround1(string &in asParent, string &in asChild, int alState)
And also, double ";" at

FadePlayerFOVMulTo(1, 1);;
Changed both, but it didn't fix it p: I think the problem is my callback, no?
void OnStart()
{
SetPlayerLampOil(0.35f);
SetPlayerActive(false); // With SetPlayerActive you can't look around, since it removes ALL player-controls.
//SetPlayerLookSpeedMul(0.2f);
FadeRadialBlurTo(0.5f, 3.0f);
SetSanityDrainDisabled(true);
SetInventoryDisabled(false);
BlockDefaultHints();
FadeIn(3);
FadePlayerFOVMulTo(1, 1);
//SetPlayerRunSpeedMul(0);
MovePlayerHeadPos(0, -1.5f, 0, 10, 0.5f);
//SetSanityDrainDisabled(true); //duplicates?
lookingaround1();
}
void lookingaround1()
{
StartPlayerLookAt("invisible_box_mass_3", 5.0f, 5.0f, ""); // Why not use an area? :)
AddTimer("", 3.0f, "StopLook");
}
void StopLook(string &in asTimer)
{
  StopPlayerLookAt();
}
void BlockDefaultHints()
{
    BlockHint("DarknessDecrease");
    BlockHint("PickLantern");
    BlockHint("PickTinderbox");
    BlockHint("SanityHit");
    BlockHint("SanityLow");
}

void OnEnter()
{

}

Does this work for you?

I honestly don't get what it is you actually need help with.
Check the bold edit! Big Grin Then maybe you can help [; But thanks for the duplicate. It's for an intro, so I don't want the player to be able to control it - imagine it as a cinematic of sorts.

EDIT: Forget it, I just had to move the box he was looking at.

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