Changing a player prototype value in control.lua
Posted: Fri Mar 20, 2015 6:26 pm
Hi guys!
Just a quick question I hope someone can answer.
For my mod I want to change the "collision_mask" variable in the player prototype at runtime (in the control.lua file) depending on a condition.
My problem is, that I wasn't able to come up with a way to change the prototype at runtime. I also didn't find anything on the wiki.
I hope you can help me.
Just a quick question I hope someone can answer.
For my mod I want to change the "collision_mask" variable in the player prototype at runtime (in the control.lua file) depending on a condition.
My problem is, that I wasn't able to come up with a way to change the prototype at runtime. I also didn't find anything on the wiki.
I hope you can help me.