Search found 5 matches

by DiRten
Tue Jun 27, 2023 9:00 am
Forum: Modding help
Topic: Help to increase the distance of auto-placement of resources.
Replies: 0
Views: 424

Help to increase the distance of auto-placement of resources.

I have long wanted to do noise and autoplace. But as soon as I look at the documentation, its appearance disheartens me. I gave up, so I'm asking for help. I want to increase the distance between resource points. But I can't figure out which function or variable is specifically responsible for this ...
by DiRten
Mon Mar 13, 2023 12:45 pm
Forum: Implemented mod requests
Topic: Raise an event if color of an entity is changed by player or script
Replies: 2
Views: 900

Re: Raise an event if color of an entity is changed by player or script

As the author of the CustomColor mod, I fully support it.
by DiRten
Tue Mar 07, 2023 2:53 am
Forum: Modding help
Topic: How to close the mod's gui using the "close menu" key (escape or another one installed in the control).
Replies: 0
Views: 476

How to close the mod's gui using the "close menu" key (escape or another one installed in the control).

Hi!
Please help me with 2 questions:
In this case, I mean the gui located in player.gui.screen
  • How to close the mod's gui using the "close menu" key (escape or another one installed in the control).
  • How to index my interface like a gui_opened.
by DiRten
Tue Mar 07, 2023 1:35 am
Forum: Modding help
Topic: How to make a definition name for the custom event?
Replies: 2
Views: 702

Re: How to make a definition name for the custom event?

robot256 wrote: ↑Mon Mar 06, 2023 11:59 pm There is no way to assign a global name to a custom event ID. When cross-mod compatibility is needed, you will need to add a remote interface so that mod can ask your mod what event ID to register.
Thanks!
by DiRten
Mon Mar 06, 2023 11:10 pm
Forum: Modding help
Topic: How to make a definition name for the custom event?
Replies: 2
Views: 702

How to make a definition name for the custom event?

How to make a definition name for the custom event? I generated uint event name: local event_name = script.generate_event_name() And to "hear" it, I use: script.on_event(new_event, check_test_event) But how can i create a definitive name for other mods? Classic events are defined as: scrip...

Go to advanced search