CheckActorCeilingTexture ignores F_SKY1

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.

Post a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is OFF
Smilies are ON

Topic review
   

Expand view Topic review: CheckActorCeilingTexture ignores F_SKY1

Re: CheckActorCeilingTexture ignores F_SKY1

by Bilbö Bägginson » Sat Mar 26, 2022 10:52 am

Solved!

while looking through the pk3 have found the cause. There was not "flats" folder with "F_SKY1" flat.
thanks anyway

Re: CheckActorCeilingTexture ignores F_SKY1

by Graf Zahl » Sat Mar 26, 2022 4:53 am

Please post your map. We can guess all we want but we need to see the problem in action to give any further advice.

Re: CheckActorCeilingTexture ignores F_SKY1

by Bilbö Bägginson » Sat Mar 26, 2022 2:16 am

Gez wrote:Perhaps a dedicated "CheckActorOutside" function could be useful because the sky flat can be changed and there's also sector type 87.
Yeah this is exactly what i`m trying to do but how can I when it ignores "F_SKY1"?

Re: CheckActorCeilingTexture ignores F_SKY1

by Bilbö Bägginson » Sat Mar 26, 2022 12:31 am

I have like this:

in gameinfo section of ZMapInfo lump:

Code: Select all

skyflatname = "F_SKY1"
in ACS:

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;
}

Re: CheckActorCeilingTexture ignores F_SKY1

by Gez » Wed Mar 23, 2022 5:59 am

Perhaps a dedicated "CheckActorOutside" function could be useful because the sky flat can be changed and there's also sector type 87.

Re: CheckActorCeilingTexture ignores F_SKY1

by Graf Zahl » Wed Mar 23, 2022 12:45 am

What game did you test this on? Hexen and Strife use different names for the sky texture.

Re: CheckActorCeilingTexture ignores F_SKY1

by Kappes Buur » Tue Mar 22, 2022 5:15 pm

It does work when you include #include "zcommon.acs" at the top,
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;
} 

CheckActorCeilingTexture ignores F_SKY1

by Guest » Tue Mar 22, 2022 3:11 am

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

Top