03-25-2011, 01:31 AM
03-25-2011, 01:37 AM
Use the search function, 'scare' has been asked often enough.
-> http://www.frictionalgames.com/forum/search.php
-> http://www.frictionalgames.com/forum/search.php
03-25-2011, 01:41 AM
(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, 05:29 AM
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.
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, 06:51 PM
Thanks Very much
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?
(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?