Jump to content
Sign in to follow this  
florianmuellerch

How to define an RscTitle in a mod?

Recommended Posts

Hi guys

I want to create a tiny little mod with an own RscTitle. But how can I define it? Should I also create a description.ext file in my root Addon-Folder or can I simply define it in a .hpp file and then include it into my .sqf-Script?

Thank you for your help :)

Share this post


Link to post
Share on other sites
Hi guys

I want to create a tiny little mod with an own RscTitle. But how can I define it? Should I also create a description.ext file in my root Addon-Folder or can I simply define it in a .hpp file and then include it into my .sqf-Script?

Thank you for your help :)

you would do it as normal but save the file as config.cpp

config.cpp


class RscTitles
{
  class Resource // <-- this is the class name for the resource
  {
      idd = 9999; // Any number not already taken
      duration = 10; // Any number
      fadeIn = 0;
      fadeOut = 0;

      onLoad = ""; // Code in quotes
      onUnLoad = ""; // Code in quotes

      class Controls
      {
           // Put controls here
      };
  };
};

too call it all you have to do is use

("myCustomLayer" call BIS_fnc_rscLayer) cutRsc ["Resource", "PLAIN", 0];

Hope that helps you,

regards,

Bull

Share this post


Link to post
Share on other sites

You, Sir, made my night. Thank you very well :D

I already had a config.cpp file for that Addon but still wouldn't realize what it actually was :D thanks!

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×