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
callback syntax altering
Southlaguna Offline
Member

Posts: 70
Threads: 21
Joined: Jan 2012
Reputation: 0
#1
callback syntax altering

Hey...

So i'm trying to figure out how to change the value of an int in my callback syntax. Specifcally:

void OnEnter()
{
SetEntityPlayerLookAtCallback("telewaves", "telewaves", false);
}

void telewaves(string &in asEntity, int alState)
{
if (int alState()==1){
FadeRadialBlurTo(0.03, 0.03);
AddDebugMessage("looking corner 1", false);
}
else if (int alState()==-1){
ChangePlayerStateToNormal();
}

}

I dont know if im waaaay off or like just off by a few pointers. im just trying to make it that visual effects happen in specific locations and instantly stop after i look away from that spot.

10-28-2015, 09:04 AM
Find


Messages In This Thread
callback syntax altering - by Southlaguna - 10-28-2015, 09:04 AM
RE: callback syntax altering - by jens - 10-28-2015, 09:20 AM
RE: callback syntax altering - by Southlaguna - 11-03-2015, 12:07 PM



Users browsing this thread: 1 Guest(s)