WorldThingTeleported event or OnTeleport virtual?

Remember, just because you request it, that doesn't mean you'll get it.

Moderator: GZDoom Developers

User avatar
Matt
Posts: 9687
Joined: Sun Jan 04, 2004 5:37 pm
Location: Gotham City SAR, Wyld-Lands of the Lotus People, Dominionist PetroConfederacy of Saudi Canadia

WorldThingTeleported event or OnTeleport virtual?

Post by Matt »

I've got a mod that does some stuff with actors right after they've teleported - adjusting momentum, resetting reactiontime, etc..

The only method I have right now for telling if a teleportation event has occurred is to constantly track their last position and see if the distance is longer than some arbitrary value that I think is farther than they could possibly move in one tic without a teleport. Obviously this is not very reliable.

I've tried the +TELEPORT flag but it seems to be cleared before anything can be done with it ZScript-side.
User avatar
Marisa the Magician
 
 
Posts: 3879
Joined: Fri Feb 08, 2008 9:15 am
Preferred Pronouns: She/Her
Operating System Version (Optional): (btw I use) Arch
Graphics Processor: nVidia with Vulkan support
Location: Vigo, Galicia

Re: WorldThingTeleported event or OnTeleport virtual?

Post by Marisa the Magician »

Return to “Feature Suggestions [GZDoom]”