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
Making an area execute StopPlayerLookAt();
lolmaster Offline
Member

Posts: 170
Threads: 9
Joined: Jul 2012
Reputation: 6
#1
Making an area execute StopPlayerLookAt();

I have a script where if I pick up a key it plays a sound and looks at a defined area.
Then I have a script where the player collides with a new area and the new area uses StopPlayerLookAt();.
It doesn't work. Is it supposed to?

I've also thought about using a timer for this, and scrapping the new area.


(This post was last modified: 07-30-2012, 06:50 PM by lolmaster.)
07-30-2012, 06:38 PM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#2
RE: Making an area execute StopPlayerLookAt();

If coded right and the proper type of area is used, it's supposed to work. However, you didn't provide your code for verification.

Tutorials: From Noob to Pro
07-30-2012, 06:45 PM
Website Find
lolmaster Offline
Member

Posts: 170
Threads: 9
Joined: Jul 2012
Reputation: 6
#3
RE: Making an area execute StopPlayerLookAt();

I got it to work. I actually wanted the player to just look at the door and then stop looking, so I added the timer.


07-30-2012, 06:50 PM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#4
RE: Making an area execute StopPlayerLookAt();

(07-30-2012, 06:50 PM)lolmaster Wrote: I got it to work. I actually wanted the player to just look at the door and then stop looking, so I added the timer.

Then why not just pass StopPlayerLookAt to StartPlayerLookAt?

Tutorials: From Noob to Pro
07-30-2012, 07:38 PM
Website Find
lolmaster Offline
Member

Posts: 170
Threads: 9
Joined: Jul 2012
Reputation: 6
#5
RE: Making an area execute StopPlayerLookAt();

(07-30-2012, 07:38 PM)Your Computer Wrote:
(07-30-2012, 06:50 PM)lolmaster Wrote: I got it to work. I actually wanted the player to just look at the door and then stop looking, so I added the timer.

Then why not just pass StopPlayerLookAt to StartPlayerLookAt?
I don't know.


07-30-2012, 09:41 PM
Find




Users browsing this thread: 1 Guest(s)