Classes:SkyPicker

From ZDoom Wiki
Jump to navigation Jump to search
Note: Wait! Stop! You do not need to copy this actor's code into your project! Here's why:
  1. This actor is already defined in GZDoom, there's no reason to define it again.
  2. In fact, trying to define an actor with the same name will cause an error (because it already exists).
  3. If you want to make your own version of this actor, use inheritance.
  4. Definitions for existing actors are put on the wiki for reference purpose only.
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
{
  +NOSECTOR
  +NOBLOCKMAP
  +NOGRAVITY
  +DONTSPLASH
}