The opposite of OwnerDied(), in short. Useful for performing certain things upon resurrection.
OwnerRevived() would be called before the actor's information changes at all.
OwnerPostRevived() would be called after the actor's information changes.
What about WorldThingRevived?
The function's called after the reset, not before. it also wouldn't allow me to accomplish specifics with tick/doeffect functions without it becoming extremely tedious.
WorldThingRevived makes the post function superfluous...
No it doesn't. It saves on the need to even override WorldThingRevived in certain situations, let alone make an iterator to search for inventories with the matching owner. Not having to pull up an iterator on ZScript's side is a win to me.
Also, currently I haven't found a way to conveniently iterate through just one actor's inventory.
Inventory Owner(Post)Revived() Virtual
Moderator: GZDoom Developers
-
Major Cooke
- Posts: 8218
- Joined: Sun Jan 28, 2007 3:55 pm
- Preferred Pronouns: He/Him
- Operating System Version (Optional): Windows 10
- Graphics Processor: nVidia with Vulkan support
- Location: GZBoomer Town
-
nazakomu
- Posts: 131
- Joined: Wed Nov 30, 2016 12:51 am
- Graphics Processor: nVidia with Vulkan support
Re: Inventory Owner(Post)Revived() Virtual
Sounds doable to me, and especially sounds like it would be very useful for what you elaborated on.