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
Script Help PlayerLookAt?
Tripication Offline
Member

Posts: 172
Threads: 19
Joined: Dec 2011
Reputation: 6
#1
PlayerLookAt?

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

[Image: speedart__2___yoshimitsu_by_kamofudge-d4yo6kk.png]
(This post was last modified: 01-29-2012, 10:40 AM by Tripication.)
01-29-2012, 10:35 AM
Find
Dobbydoo Offline
Member

Posts: 50
Threads: 6
Joined: Aug 2011
Reputation: 0
#2
RE: PlayerLookAt?

PHP Code: (Select All)
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
01-29-2012, 11:20 AM
Find
Tripication Offline
Member

Posts: 172
Threads: 19
Joined: Dec 2011
Reputation: 6
#3
RE: PlayerLookAt?

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

[Image: speedart__2___yoshimitsu_by_kamofudge-d4yo6kk.png]
01-29-2012, 12:38 PM
Find




Users browsing this thread: 2 Guest(s)