From ZDoom Wiki
Jump to navigation Jump to search
Note: Wait! Stop! Before you copy this actor's definition into your mod, remember the following things:
  1. You do NOT need to copy that actor, since it is already defined.
  2. In fact, it's not just useless, it will cause problems.
  3. If you want to modify it, or use a modified version, using inheritance is the way to go.
  4. The actor definitions here are put on the wiki for reference purpose only. Learn from them, don't copy them.
Sky picker
Actor type Map spot Game MiniZDoomLogoIcon.png (ZDoom)
DoomEd Number 9081 Class Name SkyPicker

Classes: SkyPicker

The sky picker is used to choose which skybox to use in a sector. It takes 2 arguments.

The first argument is the tid of the SkyViewpoint. If this argument is zero, then the sector will use the default normal sky texture (as defined in MAPINFO) rather than one of the level's skybox. If it is not zero, the SkyViewpoint with the corresponding tid will be used.

The second argument has 3 options:

0: Apply the skybox on both floor and ceiling (if both use the F_SKY1 flat)
1: Apply the skybox only to the ceiling
2: Apply the skybox only to the floor

This way it is possible to place two sky pickers in a single sector, one to chose a skybox for the floor and the other to chose a skybox for the ceiling.

DECORATE definition

ACTOR SkyPicker native