I am am looking at implementing camping functions for Climates & Cloaks. I figured I would use the bed resting function from Hazelnuts RP&R as a basis. This worked great for being able to rest by a fireplace, however, I am trying to figure out how to make it work for the campfires you find in dungeons and I'm running into a problem.
For Fireplaces I just needed:
Code: Select all
PlayerActivate.RegisterModelActivation(41116, CampActivation);
And then
Code: Select all
private static void CampActivation(Transform transform)
{
//Debug.Log("Camping");
IUserInterfaceManager uiManager = DaggerfallUI.UIManager;
uiManager.PushWindow(new DaggerfallRestWindow(uiManager, true));
}
However, when attmepting to identify a mesh ID for campfires I am running into the problem that thy are part of billboard mesh 210:
- campfirebillboard.PNG (12.53 KiB) Viewed 1114 times
Is there a way to refer to this in my code? Just doing
Code: Select all
PlayerActivate.RegisterModelActivation(210, CampActivation);
obviously doesn't work as I assume I need to refer to the index as well?