Page 1 of 1
Flag to hide car "triangle" on the map for custom prototypes
Posted: Wed Nov 08, 2017 2:49 am
by eradicator
What?
The ability to specify that a custom type = "car" prototype never renders an icon on the (mini-) map.
Why?
Cars are often
abused ... repurposed by mods for varius things. The old nixies tubes and the
Helicopters mod are just two examples of existing mods. So it would be pretty nice if it was possible to hide the little triangle that is shown on the map for car entities that are not actually cars in the... traditional sense.
![cararrow.png](./download/file.php?id=30056)
- cararrow.png (554 Bytes) Viewed 1815 times
Re: Flag to hide car "triangle" on the map for custom prototypes
Posted: Wed Nov 08, 2017 11:38 am
by Klonan
You could just set the force of the other car to 'neutral', that way it won't show on the map
Re: Flag to hide car "triangle" on the map for custom prototypes
Posted: Wed Nov 08, 2017 2:07 pm
by darkfrei
Why not just easy_entity_with_rotation and easy_entity_with_direction?
Not on the map, needs no action, script only.
Re: Flag to hide car "triangle" on the map for custom prototypes
Posted: Wed Nov 08, 2017 2:18 pm
by Rseding91
In 0.16 simple entity has a graphics variation you can get/set through the API so it would be able to do what you're trying to do here.
Re: Flag to hide car "triangle" on the map for custom prototypes
Posted: Wed Nov 08, 2017 3:07 pm
by eradicator
Rseding91 wrote:In 0.16 simple entity has a graphics variation you can get/set through the API so it would be able to do what you're trying to do here.
For the graphical variation this might be a working solution (though i kinda doubt the guy who made Helicopters is going to migrate to a different entity). For my personal modding "needs" i'm more interested in the inventory of the car prototype along with it's unique property to be movable. I'm not sure about @Klonan's solution either as i don't know how i.e. inserters interact with entities that belong to a different force - intuitively i'd guess they don't interact at all...
Re: Flag to hide car "triangle" on the map for custom prototypes
Posted: Fri Dec 22, 2017 7:36 am
by kumpu
Rseding91 wrote:In 0.16 simple entity has a graphics variation you can get/set through the API so it would be able to do what you're trying to do here.
Can we rely on this to be supported in future versions?