Ambient Sound and PointLight not "following" Elev. movement

Ask about mapping, UDMF, using DoomBuilder/editor of choice, etc, here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
Post Reply
XLightningStormL
Posts: 384
Joined: Mon May 09, 2016 1:38 am
Location: Anywhere but here
Contact:

Ambient Sound and PointLight not "following" Elev. movement

Post by XLightningStormL »

So for my map I have an elevator that also uses Dynamic Lights (to represent Emergency Power) and also includes Elevator Music, however when the Elevator moves, the two actors don't actually follow the lifts movement and will keep the same Z-location for some reason.

Anyway to fix this? It kinda ruins the point of using either.
User avatar
Kappes Buur
 
 
Posts: 4114
Joined: Thu Jul 17, 2003 12:19 am
Graphics Processor: nVidia (Legacy GZDoom)
Location: British Columbia, Canada
Contact:

Re: Ambient Sound and PointLight not "following" Elev. movem

Post by Kappes Buur »

The ambient sound should be audible regardless of the sector height. Just place the sound close to or in the sector.

For the dynamic lights you could place several at different heights.
Or deactivate them at first and activate, then deactivate them, with a script as the player moves through the height of the dynamic lights. Perhaps something like GetActorFloorZ. There are a few ways of doing this.
User avatar
Enjay
 
 
Posts: 26517
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: Ambient Sound and PointLight not "following" Elev. movem

Post by Enjay »

How about defining an (invisible) actor that moves with the sector and defining a dynamic light for it?
Post Reply

Return to “Mapping”