The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
SetEntityPlayerLookAtCallback??
Tripication Offline
Member

Posts: 172
Threads: 19
Joined: Dec 2011
Reputation: 6
#1
SetEntityPlayerLookAtCallback??

ok, how does this work.

If i were to have a player open the door and look at an object, how would i get the void for it??

this is what i have so far...
void OnStart()

{
SetEntityPlayerLookAtCallback("Tablescare", "TableScare", false);

}

void TableScare(string &in asEntity, int alState)
{

}




Im not sure if its right, now I want it so that when the player opens the door, and sees the StoneTable, i want him to freak out, then add a timer of 2 or 3 seconds, then force look at the door behind him, that is being bashed down by a grunt.


Now i know how to forcelook, give sanity damage and add timers and all that biz. But how would the script know what entity i have to look at out of this?
SetEntityPlayerLookAtCallback(string& asName, string& asCallback, bool abRemoveWhenLookedAt);

Plese help, this is driving me insane...

[Image: speedart__2___yoshimitsu_by_kamofudge-d4yo6kk.png]
(This post was last modified: 01-10-2012, 12:38 PM by Tripication.)
01-10-2012, 11:19 AM
Find


Messages In This Thread
SetEntityPlayerLookAtCallback?? - by Tripication - 01-10-2012, 11:19 AM
RE: SetEntityPlayerLookAtCallback?? - by flamez3 - 01-10-2012, 11:25 AM



Users browsing this thread: 2 Guest(s)