script "windsound" ENTER
{
if (CheckActorCeilingTexture(0, "F_SKY1"))
print (s:"You're outside!");
else
print (s:"You're inside!");
delay(1);
restart;
}
Prints "You're inside!" even if I am under the skybox.
And it works fine with another textures, but not with F_SKY1
CheckActorCeilingTexture ignores F_SKY1
Moderator: GZDoom Developers
Forum rules
Contrary to popular belief, we are not all-knowing-all-seeing magical beings!
If you want help you're going to have to provide lots of info. Like what is your hardware, what is your operating system, what version of GZDoom/LZDoom/whatever you're using, what mods you're loading, how you're loading it, what you've already tried for fixing the problem, and anything else that is even remotely relevant to the problem.
We can't magically figure out what it is if you're going to be vague, and if we feel like you're just wasting our time with guessing games we will act like that's what you're really doing and won't help you.
Contrary to popular belief, we are not all-knowing-all-seeing magical beings!
If you want help you're going to have to provide lots of info. Like what is your hardware, what is your operating system, what version of GZDoom/LZDoom/whatever you're using, what mods you're loading, how you're loading it, what you've already tried for fixing the problem, and anything else that is even remotely relevant to the problem.
We can't magically figure out what it is if you're going to be vague, and if we feel like you're just wasting our time with guessing games we will act like that's what you're really doing and won't help you.
-
-
- Posts: 4069
- Joined: Thu Jul 17, 2003 12:19 am
- Location: British Columbia, Canada
Re: CheckActorCeilingTexture ignores F_SKY1
It does work when you include #include "zcommon.acs" at the top,
like so

like so
Code: Select all
#include "zcommon.acs"
script "windsound" ENTER
{
if (CheckActorCeilingTexture ( 0, "F_SKY1") )
print (s:"You're outside!");
else
print (s:"You're inside!");
delay(1);
restart;
}

-
- Lead GZDoom+Raze Developer
- Posts: 48595
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: CheckActorCeilingTexture ignores F_SKY1
What game did you test this on? Hexen and Strife use different names for the sky texture.
-
-
- Posts: 17751
- Joined: Fri Jul 06, 2007 3:22 pm
Re: CheckActorCeilingTexture ignores F_SKY1
Perhaps a dedicated "CheckActorOutside" function could be useful because the sky flat can be changed and there's also sector type 87.
-
- Posts: 24
- Joined: Mon Nov 30, 2020 11:11 pm
- Graphics Processor: nVidia with Vulkan support
Re: CheckActorCeilingTexture ignores F_SKY1
I have like this:
in gameinfo section of ZMapInfo lump:
in ACS:
in gameinfo section of ZMapInfo lump:
Code: Select all
skyflatname = "F_SKY1"
Code: Select all
#include "zcommon.acs"
script "windsound" (void)
{
if (CheckActorCeilingTexture(0, "F_SKY1"))
print (s:"You're outside!");
else
print (s:"You're inside!");
delay(1);
restart;
}
-
- Posts: 24
- Joined: Mon Nov 30, 2020 11:11 pm
- Graphics Processor: nVidia with Vulkan support
Re: CheckActorCeilingTexture ignores F_SKY1
Yeah this is exactly what i`m trying to do but how can I when it ignores "F_SKY1"?Gez wrote:Perhaps a dedicated "CheckActorOutside" function could be useful because the sky flat can be changed and there's also sector type 87.
-
- Lead GZDoom+Raze Developer
- Posts: 48595
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: CheckActorCeilingTexture ignores F_SKY1
Please post your map. We can guess all we want but we need to see the problem in action to give any further advice.
-
- Posts: 24
- Joined: Mon Nov 30, 2020 11:11 pm
- Graphics Processor: nVidia with Vulkan support
Re: CheckActorCeilingTexture ignores F_SKY1
Solved!
while looking through the pk3 have found the cause. There was not "flats" folder with "F_SKY1" flat.
thanks anyway
while looking through the pk3 have found the cause. There was not "flats" folder with "F_SKY1" flat.
thanks anyway