Page MenuHomeFeedback Tracker

interaction system option to add entity/context without completely overriding normal interaction collection
New, NormalPublic

Description

in SCR_InteractionHandlerComponent Add a function to add entities like HandlInspection & HandleVehicle does,
BUT without forcing manual list.


The SCR_InteractionHandlerComponent and vanilla interaction system which allwos pressing F on things ^^.

.
.
.

Currently it's very limited by blocking entitiyes and contexts from the system based on strict conditioning.

  • interaction options limited when in vehicles
  • interaction options limited from context in child entities, such as gadgets in player hands (unless HandleInspection from the interaction handler

in vanilla, the radio has a special case for interaction of the radio:

However there are lots of cases where modders want to use the interaction system dynamically, with scripts as well as have interactions on things that are not being inspected.

Tried using

		SetManualNearbyCollectionOverride(true);
		SetManualCollectionOverride(true);

however, this completely blocked the normal context from being shown (such as the truck door)

(I tried adding interaction to an object not being inspected)
(but the door actions are now hidden)


(I want these actions to be shown still)

the solution would be to do it like vanilla adds things to interaction with SetManualCollectionOverride.
But without overriding the default interactions, but just adding custom ones that are normally excluded from the interaction handler.

// or better options to add interactions using scripts in general,

Details

Severity
Trivial
Resolution
Open
Reproducibility
N/A
Operating System
Windows 10 x64
Category
General
Additional Information

some use cases:

  • dynamically adding entity with interaction to a car with a script
  • adding interaction to modded entities, child entities that are normally ignored byy interaction system
  • automatically changing position of a child entity, in order to adjust interaction position with scripts
  • scripting interaction automatically instead of having to manually configure interactions per prefab

Event Timeline