Classes:SkyPicker
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:
|
Sky picker | |||
---|---|---|---|
Actor type | Map spot | Game | (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 }