Linedef type 461, Spawn Object, is a type of linedef executor which, when triggered, spawns an Object of the specified type at the specified coordinates.
Setup
The tag given to this linedef is irrelevant. The Object type of the spawned Object should be written across the control linedef's front textures. The front texture X and Y offsets determine the X and Y coordinates of the spawn point, and the control sector's floor height determines the Z coordinate. If the control linedef has a back side and Flag [6] / Not Climbable is set, then the spawn coordinates will be chosen from a random range. In this case, the front texture X and Y offsets and the control sector floor height determine the minimum possible values for the X,Y and Z coordinates, while the back texture X and Y offsets and the control sector ceiling height determine the maximum possible values. If Flag [5] / Slope Skew / Effect 1 is set, the angle of the spawned Object is determined by the angle of the control linedef. Otherwise, it defaults to 0.
Linedef special info
|
|
Floor height
|
Z coordinate of the spawned Object [6] Not Climbable: Minimum Z coordinate of the spawned Object
|
|
Ceiling height
|
[6] Not Climbable: Maximum Z coordinate of the spawned Object
|
|
Linedef direction
|
Angle of spawned Object (if [5] Slope Skew / Effect 1 is set)
|
|
Front upper texture
|
Object type
|
|
Front middle texture
|
Object type, continued
|
|
Front lower texture
|
Object type, continued
|
|
Front texture X offset
|
X coordinate of the spawned Object [6] Not Climbable: Minimum X coordinate of the spawned Object
|
|
Front texture Y offset
|
Y coordinate of the spawned Object [6] Not Climbable: Minimum Y coordinate of the spawned Object
|
|
Back texture X offset
|
[6] Not Climbable: Maximum X coordinate of the spawned Object
|
|
Back texture Y offset
|
[6] Not Climbable: Maximum Y coordinate of the spawned Object
|
|
Linedef flags
|
[6] Not Climbable: Randomize spawn coordinates [5] Slope Skew / Effect 1: Control linedef direction sets angle of spawned Object
|
|
Sample
- Example file: Ex_ld461_spawnobject.wad (MAP01)
- Every time a player steps on the red floor, a ring will spawn in front of him.
- While the player is standing on the yellow floor, rings spawn in front of him within a defined radius.
How to use |
---|
- You may load this file into your favorite map editor, such as Zone Builder. Select
MAP01 as the map to load.
- You may also load this file in the game:
- Save
Ex_ld461_spawnobject.wad into the addons folder of your SRB2 directory.
- Start SRB2, go to the Addons menu, and then select
Ex_ld461_spawnobject.wad .
- Start the game in Single Player mode.
- Press the Console button (
~ ), and type in the command MAP MAP01 to access the example map.
- When you load this file in the game, it replaces Greenflower Zone Act 1.
|