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
Script Help SetEntityPlayerLookAtCallback issues
gbstrcl Offline
Junior Member

Posts: 3
Threads: 2
Joined: Apr 2020
Reputation: 0
#1
SetEntityPlayerLookAtCallback issues

I do two callbacks, one inside the other. In onstart I do an interact callback
between the player and the door which then leads to a look at call back between the player and the Brute enemy. The callback is ignored and the brute begins pursuit without being looked at.

void OnInteractDoor()
{
    SetEntityPlayerLookAtCallback("Brute", "ActivateBrute", true);
}


void Onstart()
{
   SetEntityPlayerInteractCallback("Door", "OnInteractDoor", true);
}
    
    

void ActivateBrute(string &in asEntity, int alState)
{
    
    SetEntityActive(asEntity, true);
    ShowEnemyPlayerPosition(asEntity);
}
.
04-07-2020, 12:57 AM
Find


Messages In This Thread
SetEntityPlayerLookAtCallback issues - by gbstrcl - 04-07-2020, 12:57 AM



Users browsing this thread: 1 Guest(s)