An update of https://www.hiveworkshop.com/threads/knock-back-3d-mms-3d-v-3-2-1.242031/ (who's author hasn't been seen since 2018) which adds 3 new features:
1.The ability to execute triggers when a KBed unit hits another unit
2. The ability to only apply on hit actions, both through triggers and built into the system, once per collision.
3. The ability to execute a trigger once per period referencing a KBed unit.
4. The ability to end KB via a periodic or on hit trigger, to do this set udg_KB3D_RemoveUnit = udg_KB3D_Unit in the periodic or on hit trigger
I'd appreciate a code review to be sure that everything is optimized even though I only made minor edits.
Update 11-10-23: Fixed Variable Creator trigger
Update 2-26-24: Added 3. feature stated above
Update 2-27-24: Fixed some issues with variables being in scope for periodic and on hit triggers and added 4. feature stated above.