Frictional Games Forum (read-only)

Full Version: PlayerLookAt?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is there anyway to sort this out so that the feild of view resets when the player doesn't look at PlayerLookAt?



void OnStart()
{
SetEntityPlayerLookAtCallback("PlayerLookAt", "FlipOut", false);
}

void FlipOut(string &in asEntity, int alState)
{
FadeRadialBlurTo(0.1f, 2);
}

Sorry about this, i've just realized i created a new thread when i still had one active about nearly the same thing :S
PHP Code:
void OnStart()
 {
 
SetEntityPlayerLookAtCallback("PlayerLookAt""FlipOut"false);
 }
 
 
void FlipOut(string &in asEntityint alState)
 {
//If looking
if(alState == 1)
{
 
FadeRadialBlurTo(0.1f2);
}
 
//If not looking
if(alState == -1)
 {
   
FadeRadialBlurTo(0.0f0);
 }


I think this should work Smile
Hmm, that didnt seem to work either. It sets it, but wont unset it when i look away, although i think i may have just thought of a way to do it with variables. I'll test tomorrow, thanks for the help thoSmile