ZDoom / gzdoom

GZDoom is a feature centric port for all Doom engine games, based on ZDoom, adding an OpenGL renderer and powerful scripting capabilities
http://zdoom.org
GNU General Public License v3.0
2.33k stars 526 forks source link

[Feature] WorldThingSpawned() works off of PostBeginPlay, we need an Event for BeginPlay too #2612

Open Lemon-King opened 4 days ago

Lemon-King commented 4 days ago

GZDoom version

GZDoom g4.12.2

Which game are you running with GZDoom?

Other

What Operating System are you using?

Windows 11

If Other OS, please describe

No response

Relevant hardware info

No response

Is your feature request related to a problem? Please describe.

Like WorldThingSpawned(AActor* actor) which is called after an Actor's PostBeginPlay() action, which may be too late of an action in some instances.

Describe the solution you'd like

It would be great to have a WorldThingPreSpawned(AActor* actor) for BeginPlay() for an earlier Actor spawn event - or something similar?

Describe alternatives you've considered

The only alternative I've used is CheckReplacement which is not adequate for more complex actors as the replaced actor has no prior information on what it was replacing.

Add any other context or screenshots about the feature request here.

No response