Search the Community
Showing results for tags 'root directory'.
Found 1 result
-
how to use functions in the root of a campaign
boosterchen posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hi, Actually i'm working on a campaign. Everthing works pretty well so far, but was thinking to change current structure as I want to move some functions out of the mission folder in order that these can be used by other missions as well without copying them to every mission again. ... that's were the problem started... I tried several ways to achieve that but none of the methods i used seem to work... I am using the standard 'ShowOSD' function. For this, i have created a configfile: cfgFunktion.hpp in 'Campaigns\DM_BST\config' which contains the classes: (cfgFunktion.hpp is included in the description.ext of the current mission: #include "\Campaigns\DM_BST\config\cfgFunktion.hpp" class CfgFunctions { class DM{ class intel { class showOSD { file = "intel\fn_showOSD.sqf"; }; }; }; }; the function fn_showOSD.sqf (which is the standard function of Jiri Wainar) i have it in a subfolder within the the mission folder -> xHub01.Stratis\intel from a customer script (within the missionfolder), the function then gets called using [] spawn DM_fnc_showOSD; So far everthing works as it should! :D but.... when I try to put the function (fn_showOSD.sqf) outside of the missionfolder eg into: Campaigns\DM_BST\functions\intel\ and adopt the path in the cfgFunktion.hpp for the function showOSD to the new location, eg: class showOSD { file = "Campaigns\DM_BST\functions\intel\fn_showOSD.sqf"; }; when I launch the mission the showOSD function dosen't work. Also, what need to be considered when putting something outside of the current missionfolder within a campaign? would really appreciate to get some help here.... Boosterchen- 5 replies
-
- ShowOSD
- cfgFunction.hpp
-
(and 3 more)
Tagged with: