(I have no idea why it says my name is Nigel Sablingmone and I cannot edit the message, but I am the original poster.)
I should start over with describing my problem. I was up late and lost the ability to explain myself clearly. Sorry! I was going a bit nuts trying to get this to work.
I am using Doom Builder X 2019.1 and running a test level with DOOM2.wad in Zandronum.
I placed a player and an Imp on the map, and used the example code from the wiki to test CheckProximity:
https://zdoom.org/wiki/CheckProximity
Code: Select all
Script "Shotgunguy_Checker" Enter
{
if (CheckProximity(0, "DoomImp", 256.0, 1))
{
Print(s:"There's an imp somewhere around!");
}
else
{
Print(s:"There are no imps around.");
}
Delay(35);
restart;
}
But when compiling this and testing it, the condition never responds with True condition, i.e. "There's an imp somewhere around!", it always returns "There are no imps around."
Also I noticed that the CheckProximity function is not highlighted and has no tooltip helpers when writing it in like other things. I made sure I have the latest ACC. I dont know how to update the config for syntax highlighting but I'm assuming that isn't causing the issue. I also read on another thread that this function needs to be used in DECORATE and not in ACS but that is not information available on the Wiki, it appears to be for ACS. But I'm starting to consider other causes at this point.
What could be preventing this from evaluating correctly? I can't figure out what the missing link is.
If it is helpful I can upload my test map, but again, it is just an imp in a room with the WIki script compiled.
(I have no idea why it says my name is Nigel Sablingmone and I cannot edit the message, but I am the original poster.)
I should start over with describing my problem. I was up late and lost the ability to explain myself clearly. Sorry! I was going a bit nuts trying to get this to work. :D
I am using Doom Builder X 2019.1 and running a test level with DOOM2.wad in Zandronum.
I placed a player and an Imp on the map, and used the example code from the wiki to test CheckProximity:
https://zdoom.org/wiki/CheckProximity
[code]
Script "Shotgunguy_Checker" Enter
{
if (CheckProximity(0, "DoomImp", 256.0, 1))
{
Print(s:"There's an imp somewhere around!");
}
else
{
Print(s:"There are no imps around.");
}
Delay(35);
restart;
}
[/code]
But when compiling this and testing it, the condition never responds with True condition, i.e. "There's an imp somewhere around!", it always returns "There are no imps around."
Also I noticed that the CheckProximity function is not highlighted and has no tooltip helpers when writing it in like other things. I made sure I have the latest ACC. I dont know how to update the config for syntax highlighting but I'm assuming that isn't causing the issue. I also read on another thread that this function needs to be used in DECORATE and not in ACS but that is not information available on the Wiki, it appears to be for ACS. But I'm starting to consider other causes at this point.
What could be preventing this from evaluating correctly? I can't figure out what the missing link is.
If it is helpful I can upload my test map, but again, it is just an imp in a room with the WIki script compiled.