what is a EntityPostHook
Posted: Sat Feb 04, 2017 12:39 pm
what exactly can be done in a EntityPostHook/TempEntityPostHook?
because shouldnt the memory be locked at that point?
because shouldnt the memory be locked at that point?
I don't have a specific use case for you, because I never used it before. It's called "create", because it's leant on the engine's name.D3CEPTION wrote:but where is the technical use of post hooking in tempentites.create()? and shouldnt the method here better be called .send() ? what can be done in or more specific WITH the posthook here, that cant be done in a prehook already or simply by adding custom code to the next line in the pythoncode?
D3CEPTION wrote:with memory locked i meant, that in my described scheme, there shouldnt be any more access in the posthook to modify the sendtable,template or recipiend object, after it has been sent. only the prehook can access these objects. at least thats what i would imagine. but when i try to test these assumptions i always get unicode decoding error when accessing the tempentity in a POSTHOOK. does it work for you?