Search found 1 match

by Theverat
Thu Sep 14, 2017 7:43 am
Forum: Gameplay Help
Topic: Scenario. Remove the resource in a certain radius
Replies: 7
Views: 3877

Re: Scenario. Remove the resource in a certain radius

How about you use on_chunk_generated like this (pseudo code)?


on_chunk_generated():
if chunk_coordinates in area:
remove_all_copper_in_chunk()


Then you wouldn't need to run the script at startup or periodically, just attach this function to the event handler.
(Note that I don't know Lua or ...

Go to advanced search