10-28-2015, 09:04 AM
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.
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.