Image selection and library fallback
Inspectable documents internals
A small helper that turns an object into an inspectable image viewer: apply the texture, set the inspection picture, and let BIS inspectable handle the interaction.
FF_Utils
2 related functions
1. Usage
// run on each client (or in initPlayerLocal.sqf for an object in the scene)
[_object, "images\clue.paa"] call FF_utils_fnc_initDocument;
// fourth argument: fallback library directory, including its trailing separator
[_object, "page_07.paa", 0, "\x\FF\addons\horror\media\lore\images\"]
call FF_utils_fnc_initDocument;
2. Behaviour
- Applies the texture to the first selection that supports it.
- Uses
BIS_fnc_initInspectableso the stock interaction appears. - Falls back to the supplied library directory when the path is relative.
- Horror supplies its own lore library as the default directory.
3. Available assets
Horror ships a lore library under x\FF\addons\horror\media\lore\ (images and named textures), plus the ghost
texture used by the scare system. Missions may point at their own images instead.
Related functions
FF_utils_fnc_initDocument— Installs a local inspectable document using a mission or addon image.FF_horror_fnc_initDocument— Document entry point that supplies the Horror lore library as the default directory.