Search found 4 matches
- Tue Jan 09, 2024 2:54 pm
- Forum: Modding discussion
- Topic: Best practices for setting player speed?
- Replies: 2
- Views: 376
Re: Best practices for setting player speed?
The sticker strategy is quite smart. In a way it feely more hacky then changing the character speed modifier, but I really like that it would act independently of other mods and effects. Iβll have to get myself familiar with stickers and try to find a reliable way to keep it active, but this seems l...
- Tue Jan 09, 2024 6:35 am
- Forum: Modding discussion
- Topic: Best practices for setting player speed?
- Replies: 2
- Views: 376
Best practices for setting player speed?
I am interested in tweaking player speed within a mod I am working on, but I am unsure how to change the speed without overwriting the effects of other mods, exoskeletons, spitter splashes and various stickers. I am thinking changing the character_running_speed_modifier is the best way, but for one,...
- Wed Dec 06, 2023 3:15 pm
- Forum: Modding help
- Topic: Efficient way to get the LuaObject again for a known entity?
- Replies: 7
- Views: 722
Re: Efficient way to get the LuaObject again for a known entity?
I think the subject was mend to be: Efficient way to get the LuaObject again for a previously known entity? Nope. I have the LuaObject eariler in the code, and just want to access the same object again, so my question has been thoroughly answered. I had the impression that LuaObject was a class tha...
- Wed Dec 06, 2023 5:45 am
- Forum: Modding help
- Topic: Efficient way to get the LuaObject again for a known entity?
- Replies: 7
- Views: 722
Efficient way to get the LuaObject again for a known entity?
I am currently storing some tables with information to find entities again, i.e. spawner = game.surfaces[spawner_info.surface].find_entity(spawner_info.name, spawner_info.position) Unless I am mistaken, I don't believe I can store LuaObjects in a subtable within the global table. I don't know how ma...