Author Topic: Resizable Streams  (Read 880 times)

0 Members and 1 Guest are viewing this topic.

Spikira

  • Newbie
  • *
  • Posts: 6
    • View Profile
Resizable Streams
« on: November 02, 2021, 11:48:56 AM »
Please add the ability to resize Stream entities, unless there is a way to do it already that I have missed.

Max

  • Sr. Member
  • ****
  • Posts: 274
    • View Profile
Re: Resizable Streams
« Reply #1 on: November 06, 2021, 01:20:57 AM »
Have you tried using
Code: [Select]
entity:set_size()
From the map script or something? It'd be pretty annoying to use that way, but I'm curious if it'd work.

The other workaround is on of course just placing a bunch of 16x16 streams, I haven't run into any issues with that. What's your use case?

Christopho

  • Administrator
  • Hero Member
  • *****
  • Posts: 1187
    • View Profile
Re: Resizable Streams
« Reply #2 on: November 08, 2021, 02:33:13 PM »
Not sure if entity:set_size() was tested a lot on streams, but that should be a solution in theory.
Another possible workaround is to make a custom entity model (they are resizable) whose only effect is to dynamically create streams on all its 16x16 squares with map:create_stream().

Spikira

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Resizable Streams
« Reply #3 on: November 09, 2021, 04:33:37 AM »
Thanks for the solutions. I'll try resizing through scripts and if that doesn't work, I'll try the custom entity method instead.