Jump to content

Interior Settlement - how to make it NOT automatically owned by player?


TaxiVader

Recommended Posts

Hi Folks.

 

I'm making an indoors settlement. All is well, however the player automatically owns the whole thing when they enter the cell. I assume this is from entering the "default empty trigger" box that is linked to the WB with the Primitive keyword. I want to change this to make it so they only own it when the player enters the "Workshop Set Owned Trigger" box surrounding the WB, as I can then force the player through a particular path using barricades that are later able to be scrapped.

 

I used the YouTube tutorials from M0ds1984 and Neeher to create the settlement functionality.

 

I have used the same process in exterior settlements and the WB is only owned once the "Workshop Set Owned Trigger" box is entered.

 

Any ideas?

Link to comment
Share on other sites

On the WorkshopScript instance attached to the placed workshop (not the base form) set:

 

OwnedByPlayer FALSE

StartsHostile FALSE

EnabledAutomaticPlayerOwnership FALSE

 

Then ownership will only be granted on script (ThisWorkshop as WorkshopScript).SetOwnedByPlayer(True) which WorkshopSetOwnedTriggerScript will do for you.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...