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
LookAtCallback
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#5
RE: LookAtCallback

If you put it like you did it, it will happen like if you wrote 0 = It will happen both when you look at it, and when you move the cursor out of the object.

To do it, only when you look at it, you put an if-statement inside the callback like this:

if(alState == 1)
{
//Do stuff
}

this way the game is asking: If the player looks onto the object //Do stuff, otherwise do what you wrote outside the if-statement

Trying is the first step to success.
02-14-2013, 04:03 PM
Find


Messages In This Thread
LookAtCallback - by tonitoni1998 - 02-14-2013, 03:55 PM
RE: LookAtCallback - by MulleDK19 - 02-14-2013, 03:56 PM
RE: LookAtCallback - by tonitoni1998 - 02-14-2013, 03:59 PM
RE: LookAtCallback - by MulleDK19 - 02-14-2013, 04:00 PM
RE: LookAtCallback - by FlawlessHappiness - 02-14-2013, 04:03 PM



Users browsing this thread: 1 Guest(s)