08-10-2012, 12:29 AM
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:
void OnStart()
{
SetPlayerLampOil(0.35f);
SetPlayerActive(false);
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);
AddEntityCollideCallback("Player", "PlayerStartArea_1", "lookingaround1", true, 1);
}
void lookingaround1(string &in asTimer)
{
StartPlayerLookAt("invisible_box_mass_3", 5.0f, 5.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()
{
}