Jump to content

Help with Attack Markers - Settlement Ambush Kit


KLLZ

Recommended Posts

New to modding, don't know jack about CK, but I need help with using CK to edit the attack scripts in the Settlement Ambush Kit. I used the mod "Attackers - Get Off My Buildzone" to 'remove' the enemy attack markers inside my settlements, but this mod does not work with Ambush Kit. I played around with CK and found a bunch of attack scripts like the vanilla attack scripts, but they use different markers. I can't figure out what exactly is going on, but I suspect that the script uses its own spawn markers that are not dependent on the vanilla ones.

 

TLDR: Make Settlement Ambush Kit use AGOMBz markers.

 

Here is a screenshot of how it looks:

 

 

Thanks in advance.

Link to comment
Share on other sites

Base game attack quests use WorkshopLinkAttackMarker (s) which is what GOMB moves around.

 

From the image "AliasNearbyHeadings" I would suspect that solution is using a quest conditional autofill to find Xmarkers, Xmarkerheadings and possibly Idle markers outside the workshop build area to pick as spawn points. Several of my spawning sloutions do this.

 

Easiest is to change the quest alias fill conditions on AliasNearbyHeadings to look something like this, although it depends if the quest is keyed to a Location or Workshop trigger and has already grabbed the LocationCenterMarker / WorkshopLinkcenter marker. This is advanced stuff you gotta understand how quest aliases fill to work it through:

 

Find Matching Reference: NearAlias CenterMarker, NearType Linked From, Condition HasLinkedRef Keyword WorkshopLinkAttackMarker

 

Or, in script

Keyword	Property pWorkshopLinkCenter Auto Const Mandatory
Keyword	Property pWorkshopKeyword Auto Const Mandatory
Keyword	Property pWorkshopLinkAttackMarker Auto Const Mandatory

ObjectReference[] GetWorkshopAttackMarkers(ObjectReference WorkshopRef) 
   ObjectReference[] WorkshopAttackMarkers
   If (WorkshopRef != None) && (WorkshopRef.HasKeyword(pWorkshopKeyword) == True)
      ObjectReference WorkshopLinkCenter = WorkshopRef.GetLinkedRef(pWorkshopLinkCenter)
      WorkshopAttackMarkers = WorkshopLinkCenter.GetRefsLinkedToMe(apLinkKeyword = pWorkshopLinkAttackMarker, apExcludeKeyword = None)
   Endif
   Return WorkshopAttackMarkers
EndFunction

You can learn more about workshop markers from the keyword table at the end of this article https://www.nexusmods.com/fallout4/articles/2094 and this solution https://www.nexusmods.com/fallout4/mods/38738 and

Link to comment
Share on other sites

  • Recently Browsing   0 members

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