Page 1 of 1

LuaEntityPrototype::dying_speed [R]

Posted: Mon May 17, 2021 8:52 am
by Galista
When using LuaEntityPrototype::time_to_live in control stage to get a Prototype/Corpse.time_before_removed property, the value returned is not the one defined in the prototype (in ticks) but has been in-between multiplied by its Prototype/Corpse.dying_speed property, making it unusable.

Adding LuaEntityPrototype::dying_speed (read-only) could be a simple solution.

Re: LuaEntityPrototype::dying_speed [R]

Posted: Sat Oct 07, 2023 7:37 pm
by Rseding91
This has been implemented at some point in the last 2 years.

Re: LuaEntityPrototype::dying_speed [R]

Posted: Sun Oct 08, 2023 12:10 pm
by Galista
I didn't noticed, it slipped through the changelogs. Thank you for the notification!

It was added in 1.1.60 apparently.