Jump to content

Recommended Posts

So I want to add scenario to Islands level I created.

The thing is I want season to change every time player uses a wormhole.

That can be done with other ways like prefab post inits and such but then it would affect all savefile if the mod is enabled.

Scenarios seems ideal for the job, I found out they are attached to objects like set pieces and such, now it would possbile to attach it to wormhole prefab, and how to do that? (can't find anything about using scenarios)

Link to comment
https://forums.kleientertainment.com/forums/topic/34832-scenario/
Share on other sites

Scenarios are just for set pieces, unfortunately. But you can do

AddPrefabPostInit("wormhole", function(inst)    if GetWorld() and GetWorld().meta.level_id == "ISLANDS" then        -- stuff    endend)
(I found about this yesterday myself, when implementing a Caves Preview-like survival preset for U&A; this was also how I found out dlc support at worldgen is broken) Edited by simplex

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...