YAInteraction/scripts
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
..
3_Game/YAInteraction Initial commit: YAInteraction DayZ mod 2026-06-18 21:11:55 +03:00
4_World/YAInteraction Support actions on standalone-spawned objects (by classname) 2026-06-19 17:23:58 +03:00
5_Mission/YAInteraction Add @YAProxy dependency check + retry at mission init 2026-06-19 10:15:08 +03:00