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
How to activate entities by looking at an area
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#4
RE: How to activate entities by looking at an area

It works like this:
When the cursor is inside the area, the function is calling.

Ex. if the function is "LookAtAreaFunc"

then it is:

void LookAtAreaFunc(string &in asEntity, int alState)
{
if(alState == 1) //Only if the player is look at the area
{
//Do stuff
}
}

Trying is the first step to success.
11-12-2012, 07:48 PM
Find


Messages In This Thread
RE: How to activate entities by looking at an area - by FlawlessHappiness - 11-12-2012, 07:48 PM



Users browsing this thread: 1 Guest(s)