YAInteraction/scripts/4_World
smthspec 4bd4a74152 Support actions on standalone-spawned objects (by classname)
Objects spawned directly in the world (init.c / CE) are real BuildingBase
entities, so attach a Search to them by classname - independent of the proxy
framework (which needs a parent house; CCTCursorParent rejects parentless
objects).

- ActionYASearchObj: object-targeted (CCTNonRuined) Search; resolves the entry
  from target.GetObject().GetType() (substring), cooldown keyed by network id
- modded BuildingBase.SetActions: attaches it to classes matching a search entry
- Shared YAInteractionManager.PerformSearch() used by both proxy + object actions
- Re-add vending_machine (works for standalone-spawned vending machines)

Lets you make spawned loot boxes / vending machines lootable: add the classname
(or a substring) as a 'search' entry.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-19 17:23:58 +03:00
..
YAInteraction Support actions on standalone-spawned objects (by classname) 2026-06-19 17:23:58 +03:00