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
Interact scare help.
Itskody Offline
Member

Posts: 100
Threads: 30
Joined: Mar 2011
Reputation: 1
#1
Interact scare help.

How do i make it so that when my guy opens a cabinet and sees whats in it he gets scared?
03-25-2011, 01:31 AM
Find
Pandemoneus Offline
Senior Member

Posts: 328
Threads: 2
Joined: Sep 2010
Reputation: 0
#2
RE: Interact scare help.

Use the search function, 'scare' has been asked often enough.

-> http://www.frictionalgames.com/forum/search.php

(This post was last modified: 03-25-2011, 01:37 AM by Pandemoneus.)
03-25-2011, 01:37 AM
Find
Itskody Offline
Member

Posts: 100
Threads: 30
Joined: Mar 2011
Reputation: 1
#3
RE: Interact scare help.

(03-25-2011, 01:37 AM)Pandemoneus Wrote: Use the search function, 'scare' has been asked often enough.

-> http://www.frictionalgames.com/forum/search.php

I cant find anything
03-25-2011, 01:41 AM
Find
MrBigzy Offline
Senior Member

Posts: 616
Threads: 18
Joined: Mar 2011
Reputation: 8
#4
RE: Interact scare help.

You would use the script function: SetEntityPlayerLookAtCallback(string& asName, string& asCallback, bool abRemoveWhenLookedAt);

The syntax for the function it calls is: MyFunc(string &in entity, int alState) state: 1=looking, -1=not looking

You'd then put whatever you want him to do in that function.
03-25-2011, 05:29 AM
Find
Itskody Offline
Member

Posts: 100
Threads: 30
Joined: Mar 2011
Reputation: 1
#5
RE: Interact scare help.

Thanks Very much
(03-25-2011, 05:29 AM)MrBigzy Wrote: You would use the script function: SetEntityPlayerLookAtCallback(string& asName, string& asCallback, bool abRemoveWhenLookedAt);

The syntax for the function it calls is: MyFunc(string &in entity, int alState) state: 1=looking, -1=not looking

You'd then put whatever you want him to do in that function.

How do i do that, where do i put them on my script? both on the OnStart or what?

AND do i need to add a script to my level for it to work?
(This post was last modified: 03-25-2011, 07:15 PM by Itskody.)
03-25-2011, 06:51 PM
Find




Users browsing this thread: 2 Guest(s)