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,