I'm looking to implement line of sight for a combat related mod, and I would like to have render_player and render_to_forces added to LuaPlayer, LuaCar, and LuaUnit in order to do so.
Bonus points for adding alpha level (per force) to implement cloaking equipment.
Add render_player and render_to_forces to other entities
Add render_player and render_to_forces to other entities
Last edited by CmdrKeen on Wed Jun 19, 2019 11:02 pm, edited 1 time in total.
- eradicator
- Smart Inserter
- Posts: 5211
- Joined: Tue Jul 12, 2016 9:03 am
- Contact:
Re: Extend render_player and render_to_forces
I also have a usecase during a cutscene where i need to hide the character entity. Currently i'm working around it by teleporting it off-screen (though obviously @OP can't do that).
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.