Add render_player and render_to_forces to other entities

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
Post Reply
CmdrKeen
Long Handed Inserter
Long Handed Inserter
Posts: 98
Joined: Tue Sep 29, 2015 9:03 pm
Contact:

Add render_player and render_to_forces to other entities

Post by CmdrKeen »

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.
Last edited by CmdrKeen on Wed Jun 19, 2019 11:02 pm, edited 1 time in total.

User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5206
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: Extend render_player and render_to_forces

Post by eradicator »

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.

Post Reply

Return to “Modding interface requests”