Jump to content

bCountsForPopulation > False


rsm000rsm

Recommended Posts

Anyone know a way to get the VNAM property bCountsForPopulation > False to work for humans without requiring the creation of a custom race?

 

And while I have you here, is there a property/command/value/etc. that can be applied to an NPC to keep him/her from interacting with furniture/idle markers?

 

Both of these were intended for my "Farmhands" mod, and while I found a workaround, I'm not entirely satisfied with the result.

 

Thanks in advance.

 

-RSM

Link to comment
Share on other sites

Anyone know a way to get the VNAM property bCountsForPopulation > False to work for humans without requiring the creation of a custom race?

 

You can use a script like this to set/unset that variable:

Function SetCountInPopulation(Actor workshopActor, bool Count)
	If (workshopActor as WorkshopNPCScript)
		(workshopActor as WorkshopNPCScript).bCountsForPopulation = Count)
	EndIf
EndFunction

And while I have you here, is there a property/command/value/etc. that can be applied to an NPC to keep him/her from interacting with furniture/idle markers?

 

There are many ways to achieve this but here are the simplest ones:

 

Ownership: making the furniture object references owned by a faction ( that the NPCs are not part of ) or the player or another NPC prevents non-owner NPCs from use them.

 

IsIgnoredBySandbox = true: furniture and idle marker data flag that, if set, prevents sandboxing NPCs from accessing them.

 

AI packages: add custom sandbox or other AI packages to the NPCs that prevents them from sitting in the furnitures (some possible variables from the sandbox AI procedure: UseOwnedRefOnly = true, AllowSitting = false).

Edited by LarannKiar
Link to comment
Share on other sites

  • Recently Browsing   0 members

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