Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Shelf | Store

Privacy Policy


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help PlayerLookAt?
Author Message
Tripication Offline
Member

Posts: 172
Joined: Dec 2011
Reputation: 6
Post: #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 Confused

[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 all posts by this user Quote this message in a reply
Dobbydoo Offline
Member

Posts: 50
Joined: Aug 2011
Reputation: 0
Post: #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 all posts by this user Quote this message in a reply
Tripication Offline
Member

Posts: 172
Joined: Dec 2011
Reputation: 6
Post: #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 all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)